Skip to content

Instantly share code, notes, and snippets.

@paulosuzart
Last active November 27, 2017 02:46
Show Gist options
  • Save paulosuzart/5fc3b5d8eed56d5714ae88bc312cd7e3 to your computer and use it in GitHub Desktop.
Save paulosuzart/5fc3b5d8eed56d5714ae88bc312cd7e3 to your computer and use it in GitHub Desktop.
graphql_lang.gql
type Person {
name: String (λ (root, args, ctx, info)
(surname root))
age: Integer
}
type Query {
# Return all Organizations of an User
allPerson: [Person]
(λ (root, args, ctx, info)
(sql "select * from organization where id = :id" [#:id (id args)]))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment