albertstill / all-graphql-types

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/


Languages

Language:JavaScript 100.0%