1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
query Hero($episode: Episode, $withFriends: Boolean!) {
hero(episode: $episode) {
name
friends @include(if: $withFriends) {
name
...frag
... {
inlineFrag
}
}
}
}
fragment frag on User {
id
name
profilePic(size: 50)
}
# Switching to schema
"Description for the type"
type MyObjectType {
"""
Description for field
Supports **multi-line** description for your [API](http://example.com)!
"""
myField: String! @deprecated(reason: "Use `newField`.")
otherField(
"Description for argument"
arg: Int
)
}
input Foo {
bar [String!]! = ["baz"]
}
directive @deprecated(
reason: String = "No longer supported"
) on FIELD_DEFINITION | ENUM_VALUE
|