Last active
March 20, 2017 02:30
-
-
Save tmeasday/52cc7f8cebbd4e409bb10702669fb4be to your computer and use it in GitHub Desktop.
This file contains 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
# This is the input file, which lives at input/Task.graphql, | |
# although you can throw it away when you have run the codegen. | |
type Task { | |
title: String! | |
# This field references another type (which we will create soon) | |
# and CGS will expect our database record to have an `ownerId` field. | |
owner: User! | |
# We mark this field as an enum, so CGS knows | |
# it's not a reference to another type | |
state: TaskState! @enum | |
# These two are optional for now | |
subtitle: String | |
url: String | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment