Last active
November 27, 2017 02:46
-
-
Save paulosuzart/5fc3b5d8eed56d5714ae88bc312cd7e3 to your computer and use it in GitHub Desktop.
graphql_lang.gql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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