Skip to content

Instantly share code, notes, and snippets.

@matteodem
Created March 1, 2018 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matteodem/906d8ce765773efcf8520b86b8ab9daa to your computer and use it in GitHub Desktop.
Save matteodem/906d8ce765773efcf8520b86b8ab9daa to your computer and use it in GitHub Desktop.
Graphqlizer Basic Example
import { crud, generateTypeDefsAndResolvers } from 'meteor/easy:graphqlizer'
import { AlienCollection } from '{...}'
const alienSchema = crud('Alien', AlienCollection)
const { typeDefs, resolvers } = generateTypeDefsAndResolvers({
schemas: [alienSchema],
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment