You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following setup produces a critical error when either operation is executed.
{"_version":0,"name":"Starwars","schema":"# The query type, represents all of the entry points into our object graph\ntype Query {\n\thero(episode: Episode = NEWHOPE): Character\n\treviews(episode: Episode!, since: Time): [Review!]!\n\tsearch(text: String!): [SearchResult!]!\n\tcharacter(id: ID!): Character\n\tdroid(id: ID!): Droid\n\thuman(id: ID!): Human\n\tstarship(id: ID!): Starship\n}\n# The mutation type, represents all updates we can make to our data\ntype Mutation {\n\tcreateReview(episode: Episode!, review: ReviewInput!): Review\n}\n# The episodes in the Star Wars trilogy\nenum Episode {\n\t# Star Wars Episode IV: A New Hope, released in 1977.\n\tNEWHOPE\n\t# Star Wars Episode V: The Empire Strikes Back, released in 1980.\n\tEMPIRE\n\t# Star Wars Episode VI: Return of the Jedi, released in 1983.\n\tJEDI\n}\n# A character from the Star Wars universe\ninterface Character {\n\t# The ID of the character\n\tid: ID!\n\t# The name of the character\n\tname: String!\n\t# The friends of the character, or an empty list if they have none\n\tfriends: [Character!]\n\t# The friends of the character exposed as a connection with edges\n\tfriendsConnection(first: Int, after: ID): FriendsConnection!\n\t# The movies this character appears in\n\tappearsIn: [Episode!]!\n}\n# Units of height\nenum LengthUnit {\n\t# The standard unit around the world\n\tMETER\n\t# Primarily used in the United States\n\tFOOT\n}\n# A humanoid creature from the Star Wars universe\ntype Human implements Character {\n\t# The ID of the human\n\tid: ID!\n\t# What this human calls themselves\n\tname: String!\n\t# Height in the preferred unit, default is meters\n\theight(unit: LengthUnit = METER): Float!\n\t# Mass in kilograms, or null if unknown\n\tmass: Float\n\t# This human's friends, or an empty list if they have none\n\tfriends: [Character!]\n\t# The friends of the human exposed as a connection with edges\n\tfriendsConnection(first: Int, after: ID): FriendsConnection!\n\t# The movies this human appears in\n\tappearsIn: [Episode!]!\n\t# A list of starships this person has piloted, or an empty list if none\n\tstarships: [Starship!]\n}\n# An autonomous mechanical character in the Star Wars universe\ntype Droid implements Character {\n\t# The ID of the droid\n\tid: ID!\n\t# What others call this droid\n\tname: String!\n\t# This droid's friends, or an empty list if they have none\n\tfriends: [Character!]\n\t# The friends of the droid exposed as a connection with edges\n\tfriendsConnection(first: Int, after: ID): FriendsConnection!\n\t# The movies this droid appears in\n\tappearsIn: [Episode!]!\n\t# This droid's primary function\n\tprimaryFunction: String\n}\n# A connection object for a character's friends\ntype FriendsConnection {\n\t# The total number of friends\n\ttotalCount: Int!\n\t# The edges for each of the character's friends.\n\tedges: [FriendsEdge!]\n\t# A list of the friends, as a convenience when edges are not needed.\n\tfriends: [Character!]\n\t# Information for paginating this connection\n\tpageInfo: PageInfo!\n}\n# An edge object for a character's friends\ntype FriendsEdge {\n\t# A cursor used for pagination\n\tcursor: ID!\n\t# The character represented by this friendship edge\n\tnode: Character\n}\n# Information for paginating this connection\ntype PageInfo {\n\tstartCursor: ID!\n\tendCursor: ID!\n\thasNextPage: Boolean!\n}\n# Represents a review for a movie\ntype Review {\n\t# The number of stars this review gave, 1-5\n\tstars: Int!\n\t# Comment about the movie\n\tcommentary: String\n\t# when the review was posted\n\ttime: Time\n}\n# The input object sent when someone is creating a new review\ninput ReviewInput {\n\t# 0-5 stars\n\tstars: Int!\n\t# Comment about the movie, optional\n\tcommentary: String\n\t# when the review was posted\n\ttime: Time\n}\ntype Starship {\n\t# The ID of the starship\n\tid: ID!\n\t# The name of the starship\n\tname: String!\n\t# Length of the starship, along the longest axis\n\tlength(unit: LengthUnit = METER): Float!\n\t# coordinates tracking this ship\n\thistory: [[Int!]!]!\n}\nunion SearchResult = Human | Droid | Starship\nscalar Time\n","creation":1679419459973,"templates":[{"_version":0,"name":"Hero & reviews","source":"query {\n\thero(episode: JEDI) {\n\t\tid\n\t\tappearsIn\n\t}\n\treviews(episode: EMPIRE || JEDI) {\n\t\tstars\n\t\tcommentary\n\t\ttime\n\t}\n}"},{"_version":0,"name":"Hero expanded","source":"query {\n\thero(episode: EMPIRE || JEDI) {\n\t\tid\n\t\tname\n\t\tappearsIn\n\t\tfriends {\n\t\t\tid\n\t\t\tname\n\t\t\tappearsIn\n\t\t\tfriends {\n\t\t\t\tid\n\t\t\t\tname\n\t\t\t\tappearsIn\n\t\t\t}\n\t\t}\n\t\tfriendsConnection(first: > 0, after: len > 0 || null) {\n\t\t\ttotalCount\n\t\t\tfriends {\n\t\t\t\tid\n\t\t\t\tname\n\t\t\t\tappearsIn\n\t\t\t}\n\t\t}\n\t}\n}"},{"_version":0,"name":"Hero friends","source":"query {\n\thero(episode: EMPIRE || JEDI) {\n\t\tid\n\t\tname\n\t\tappearsIn\n\t\tfriends {\n\t\t\tid\n\t\t\tname\n\t\t\tappearsIn\n\t\t\tfriends {\n\t\t\t\tid\n\t\t\t\tname\n\t\t\t\tappearsIn\n\t\t\t}\n\t\t}\n\t}\n}"},{"_version":0,"name":"Hero friends connection & starship","source":"query {\n\thero(episode: EMPIRE) {\n\t\tid\n\t\tname\n\t\t... on Droid { primaryFunction }\n\t\t... on Human { height(unit: *) mass }\n\t\tappearsIn\n\t\tfriendsConnection {\n\t\t\ttotalCount\n\t\t\tfriends {\n\t\t\t\tid name appearsIn\n\t\t\t\t...on Droid { primaryFunction }\n\t\t\t\t... on Human { height(unit: *) mass }\n\t\t\t}\n\t\t}\n\t}\n\tstarship(id:\"3001\") { name length(unit: != METER) }\n}"},{"_version":0,"name":"Hero minimal","source":"query {\n\thero(episode: *) {\n\t\tid\n\t\tname\n\t\tfriends {\n\t\t\tid\n\t\t\tname\n\t\t}\n\t}\n}"},{"_version":0,"name":"Hero with friends & reviews","source":"query {\n\thero(episode: JEDI) {\n\t\tid\n\t\tname\n\t\tappearsIn\n\t\tfriends {\n\t\t\tid\n\t\t\tname\n\t\t\tappearsIn\n\t\t}\n\t}\n\treviews(episode: EMPIRE || JEDI) {\n\t\tstars\n\t\tcommentary\n\t\ttime\n\t}\n}"},{"_version":0,"name":"Human max. 2","source":"query {\n\thuman(id: *) {\n\t\tmax 2 {\n\t\t\tid\n\t\t\tname\n\t\t\tappearsIn\n\t\t}\n\t}\n}"}],"operations":[{"_version":0,"name":"O1","source":"query A1($e: Episode = EMPIRE) {\n\thero(episode: $e) {\n\t\tid\n\t\tappearsIn\n }\n}\n\nquery A2($e: Episode = JEDI) {\n\thero(episode: $e) {\n\t\tid\n\t\tappearsIn\n\t\tfriends {\n\t\t\tid\n\t\t}\n }\n}","variables":"{\"e\":\"EMPIRE\"}"}]}
The text was updated successfully, but these errors were encountered:
The following setup produces a critical error when either operation is executed.
The text was updated successfully, but these errors were encountered: