This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation { | |
createComment( | |
parentId: 765, | |
key: "comment-2", | |
published: true, | |
type: "object", | |
input: {news: {id: 765, type: "object"}, | |
username: "Jane", | |
email: "[email protected]", | |
content: "Fantastic!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation { | |
createComment( | |
parentId: 765, | |
key: "comment-1", | |
published: true, | |
type: "object", | |
input: {news: {id: 765, type: "object"}, | |
username: "Joe", | |
email: "[email protected]", | |
content: "Great news!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
getNews(id: 765, defaultLanguage: "en") { | |
id | |
title | |
shortText | |
content { | |
__typename | |
... on fieldcollection_NewsText { | |
text | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
getNewsListing { | |
edges { | |
node { | |
id | |
title | |
shortText | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data":{ | |
"__type":{ | |
"name":"object_News", | |
"fields":[ | |
{ | |
"name":"comments", | |
"type":{ | |
"kind":"LIST" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
__type(name: "object_News") { | |
name | |
fields { | |
name | |
type { | |
kind | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data":{ | |
"createComment":{ | |
"success":true, | |
"message":"object created: 1159", | |
"output":{ | |
"content":"Great news!" | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation { | |
createComment( | |
parentId: 765 | |
key: "comment-1" | |
published: true | |
type: "object" | |
input: { news: { id: 765, type: "object" }, content: "Great news!" } | |
) { | |
success | |
message |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data":{ | |
"getNews":{ | |
"id":"765", | |
"title":"Montery Car Week Spring Edition", | |
"shortText":"Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. (...)", | |
"date":"26.08.2019" | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
getNews(id: 765, defaultLanguage: "en") { | |
id | |
title | |
shortText | |
date | |
} | |
} |
NewerOlder