This is my example Schema
orders:{
id,
customer:{
name,
email,
phone
}
lineItem:[{
id,
title,
sku,
price,
qty
}],
paymentStatus
}
This is my Reset Api Response and I used to store this response in mongoDb:
{
id:ab163,
customer:{
name:'john',
email:'john@gmail.com',
phone:123456,
}
lineItems:[{
id:p64a8,
title:'iphone 6',
sku:'apple1_6',
price:100,
qty:1
}]
paymentStatus:'paid'
}
GraphQl Response Example
orders:{
edges:[{
node:{
id:ab163,
customer:{
name:'john',
email:'john@gmail.com',
phone:123456,
}
lineItems:[{
id:p64a8,
title:'iphone 6',
sku:'apple1_6',
price:100,
qty:1
}]
paymentStatus:'paid'
}}]
This is third party GraphQl Api response.The problem is that structure of this response is different from Rest-Api response.This GraphQl response includes keywords like edges and node. I am confused how I would be storing this GraphQl response in mongoDB. Do I need to re-wirte or modify mongoDb Schema or is there a way that I can store this GraphQl response in the same way as I stored RestApi response in mongoDb without changing model Schema.
Firebase Cloud Functions: PubSub, "res.on is not a function"
TypeError: Cannot read properties of undefined (reading 'createMessageComponentCollector')
I have a form with 2 buttons and would like to display a jQuery Dialog when a button is clickedWhen clicking on a button (say 'Yes') which is displayed on the jQuery Dialog, I'd like to execute a Drupal handler
I'm confused about the ability of read replicates to serve HA, from this doc we have :