Warning, /frameworks/syntax-highlighting/autotests/input/highlight.graphql is written in an unsupported language. File is not indexed.
0001 # Examples taken from https://graphql.org/learn/schema/#type-language
0002 #
0003 # Alerts: TODO FIXME
0004
0005 query Hero($episode: Episode, $withFriends: Boolean!) {
0006 hero(episode: $episode) {
0007 name
0008 friends @include(if: $withFriends) {
0009 }
0010 }
0011 }
0012
0013 query {
0014 droid(id: "2000", num: 42, active: true) {
0015 name
0016 }
0017 }
0018
0019 type Person @addExternalFields(source: "profiles") @excludeField(name: "photo") {
0020 name: String
0021 }
0022
0023 # block strings (from https://github.com/graphql/graphql-spec/blob/master/spec/Section%202%20--%20Language.md)
0024
0025 """
0026 This starts with and ends with an empty line,
0027 which makes it easier to read.
0028 """
0029
0030 """This does not start with or end with any empty lines,
0031 which makes it a little harder to read."""