Last active
February 26, 2018 01:34
-
-
Save nicolasdao/931813b0ebcba24f0ef3dd01480da537 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
const { transpileSchema } = require('graphql-s2s').graphqls2s | |
const { makeExecutableSchema } = require('graphql-tools') | |
const schema = ` | |
type Paged<T> { | |
data: [T] | |
cursor: ID | |
} | |
... | |
` | |
const executableSchema = makeExecutableSchema({ | |
typeDefs: [transpileSchema(schema)], | |
resolvers: resolver | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment