Created
April 21, 2021 20:43
-
-
Save smpnjn/41aaa2186520ff3d2a82fd5292c48465 to your computer and use it in GitHub Desktop.
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
let schema = buildSchema(` | |
type Query { | |
title(firstName: String, lastName: String): String | |
// ... | |
} | |
`); | |
let root = { | |
title: ({firstName, lastName}) => { return firstName + ' ' + lastName } | |
// ... | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment