JSON Field

Sample JSON Query

Query

{
articles {
statistics
}
}

Output

{
"data": {
"articles": [
{
"statistics": {
"values": [45, 75, 25, 35]
}
}
]
}
}

Mutating a JSON

Mutation

mutation {
createArticle(data: { statistics: { values: [1, 2, 3] } }) {
id
statistics
}
}

Output

{
"data": {
"createArticle": {
"id": "ck88r97ag0aal015486ubhhk7",
"statistics": {
"values": [1, 2, 3]
}
}
}
}

Were you expecting something more?

We are constantly contributing to our documentation, but if you spot something we're missing, let us know and we'll be sure to add it.

This site uses cookies to provide you with a better user experience. For more information, refer to our Privacy Policy