Created
June 30, 2020 06:08
-
-
Save rphansen91/b619d1e805a42a667e3489c59dfe9977 to your computer and use it in GitHub Desktop.
MountainSchema.ts
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
import gql from 'graphql-tag' | |
export const mountainSchema = gql` | |
type Mountain @collection(name: "mountains", crud: true) { | |
id: ObjectId | |
name: String @insert @set @filter | |
meters: Float @insert @set @filter | |
feet: Float @insert @set @filter | |
location: String @insert @set @filter | |
} | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment