#Fetching Payload JSON using GraphQL & Next

1 messages · Page 1 of 1 (latest)

formal nexusBOT
nimble citrus
#

What process do you recc to create the schema to fetch the JSON data?

I'm using the Payload website setup.

#

JSON data:

"id": "64c0d2c8cbef8d14a7742ac2",
"title": "Page 1 - Card Grid",
"layout": [
{
"cardGridFields": {
"richText": [
{
"children": [
{
"text": "This is rich text of page 1."
}
]
}
],
"links": [
{
"link": {
"type": "reference",
"reference": {
"value": "645a39b5b38aa5d8fe0745c4",
"relationTo": "pages"
},
"label": "Page 1"
},
"id": "64c0d2a14fc7f579f80fc3fc"
}
],
"cards": [
{
"title": "Card 1",
"description": "This is card 1;",
"link": {
"type": "reference"
},
"id": "64c0d2b14fc7f579f80fc3fd"
}
]
},
"id": "64c0d28c4fc7f579f80fc3fb",
"blockType": "cardGrid"
}
],
"_status": "published",
"createdAt": "2023-07-26T08:01:12.665Z",
"updatedAt": "2023-07-26T08:32:46.338Z",
"slug": "page1"
}```
#

Fetching Payload JSON using GraphQL & Next