Skip to content

albertstill/all-graphql-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An example of all the types mentioned in the GraphQL spec http://spec.graphql.org/, using the examples given in the spec.

yarn install
yarn watch

Go to http://localhost:4000/graphql to play with the GraphQL IDE.

query allTypes {
  int
  float
  string
  boolean
  id

  person {
    name
    age
  }

  reflectEnum(input: NORTH)

  randomEnum

  whereAmI(input: { lat: 243.23, long: 213.123123 })

  searchResult {
    ... on Person {
      name
    }

    ... on Photo {
      height
      width
    }
  }

  node {
    id
    ... on Order {
      amount
    }
  }

  wrappingTypes {
    foo
    bar
    baz
    bax
  }
}

About

An example of all the types mentioned in the GraphQL spec http://spec.graphql.org/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published