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
This is the SDL produced by async-graphql service examples.
Notice that it does NOT have Query type but rather QueryRoot type.
Graffle currently assumes that the root types are ALWAYS named QueryMutation etc.
This is wrong.
"""
AGraphQLSchemadefinesthecapabilitiesofaGraphQLserver.Itexposesallavailabletypesanddirectivesontheserver,aswellastheentrypointsforquery,mutation,andsubscriptionoperations.
"""schema{query: QueryRoot}interfaceCharacter{id: String!name: String!
friends: [Character!]!
appearsIn: [Episode!]!}"""A mechanical creature in the Star Wars universe."""typeDroidimplementsCharacter{"""The id of the droid."""
id: String!"""The name of the droid."""
name: String!"""The friends of the droid, or an empty list if they have none."""
friends: [Character!]!"""Which movies they appear in."""
appearsIn: [Episode!]!"""The primary function of the droid."""
primaryFunction: String}typeDroidConnection{"""Information to aid in pagination."""
pageInfo: PageInfo!"""A list of edges."""
edges: [DroidEdge!]!"""A list of nodes."""
nodes: [Droid!]!}"""An edge in a connection."""typeDroidEdge{"""The item at the end of the edge"""
node: Droid!"""A cursor for use in pagination"""
cursor: String!}"""One of the films in the Star Wars Trilogy"""enumEpisode{"""Released in 1977."""NEW_HOPE"""Released in 1980."""EMPIRE"""Released in 1983."""JEDI}"""A humanoid creature in the Star Wars universe."""typeHumanimplementsCharacter{"""The id of the human."""
id: String!"""The name of the human."""
name: String!"""The friends of the human, or an empty list if they have none."""
friends: [Character!]!"""Which movies they appear in."""
appearsIn: [Episode!]!"""The home planet of the human, or null if unknown."""
homePlanet: String}typeHumanConnection{"""Information to aid in pagination."""
pageInfo: PageInfo!"""A list of edges."""
edges: [HumanEdge!]!"""A list of nodes."""
nodes: [Human!]!}"""An edge in a connection."""typeHumanEdge{"""The item at the end of the edge"""
node: Human!"""A cursor for use in pagination"""
cursor: String!}"""Information about pagination in a connection"""typePageInfo{"""When paginating backwards, are there more items?"""
hasPreviousPage: Boolean!"""When paginating forwards, are there more items?"""
hasNextPage: Boolean!"""When paginating backwards, the cursor to continue."""
startCursor: String"""When paginating forwards, the cursor to continue."""
endCursor: String}typeQueryRoot{hero("""
Ifomitted,returnstheheroofthewholesaga.Ifprovided,returnstheheroofthatparticularepisode.
"""episode: Episode): Character!human("""id of the human"""id: String!): Humanhumans(after: String,before: String,first: Int,last: Int): HumanConnection!droid("""id of the droid"""id: String!): Droiddroids(after: String,before: String,first: Int,last: Int): DroidConnection!}
Ideas / Proposed Solution(s)
schema type needs to track the mapping
find all places where we have hard-coded references to root type names
(note to self: now I understand why there was no constant for root type name in the graphql package.)
The text was updated successfully, but these errors were encountered:
Perceived Problem
This is the SDL produced by
async-graphql
service examples.Notice that it does NOT have
Query
type but ratherQueryRoot
type.Graffle currently assumes that the root types are ALWAYS named
Query
Mutation
etc.This is wrong.
Ideas / Proposed Solution(s)
(note to self: now I understand why there was no constant for root type name in the
graphql
package.)The text was updated successfully, but these errors were encountered: