Skip to content

Instantly share code, notes, and snippets.

@nicolasdao
Last active February 26, 2018 01:34
Show Gist options
  • Save nicolasdao/931813b0ebcba24f0ef3dd01480da537 to your computer and use it in GitHub Desktop.
Save nicolasdao/931813b0ebcba24f0ef3dd01480da537 to your computer and use it in GitHub Desktop.
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