GraphQL: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
{| | {| | ||
| valign="top" | | | valign="top" | | ||
'''Schema''' | |||
<source lang="json"> | <source lang="json"> | ||
type Project { | type Project { | ||
Line 10: | Line 11: | ||
| valign="top" | | | valign="top" | | ||
'''Query''' | |||
<source lang="json"> | <source lang="json"> | ||
{ | { | ||
Line 19: | Line 21: | ||
| valign="top" | | | valign="top" | | ||
'''Results''' | |||
<source lang="json"> | <source lang="json"> | ||
{ | { |
Revision as of 21:40, 28 April 2020
Schema type Project {
name: String
tagline: String
contributors: [User]
}
|
Query {
project(name: "GraphQL") {
tagline
}
}
|
Results {
"project": {
"tagline": "A query language for APIs"
}
}
|