Skip to content

Instantly share code, notes, and snippets.

@wtrocki
Last active August 6, 2020 10:39
Show Gist options
  • Save wtrocki/6d19ca54d3e9bb712d016a16c7e57ba2 to your computer and use it in GitHub Desktop.
Save wtrocki/6d19ca54d3e9bb712d016a16c7e57ba2 to your computer and use it in GitHub Desktop.

Think about your data

""" @model """
type YourDataSync {
 _id: MongoObjectID!
 yourData: String
}

Get your data as GraphQL API

npx graphql-serve serve --datasync model.graphql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment