Skip to content

Instantly share code, notes, and snippets.

@Cal30
Last active January 19, 2017 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cal30/5e417b70fd8a74b33bc7e00771832a14 to your computer and use it in GitHub Desktop.
Save Cal30/5e417b70fd8a74b33bc7e00771832a14 to your computer and use it in GitHub Desktop.
GraphQL Post FilmType
return newObject()
.name("Film")
.description("Film - Represents an SW film")
.field(newFieldDefinition()
.name("director")
.description("Director of the film")
.type(Scalars.GraphQLString)
.build())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment