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]
}
}
}
}

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