Last active
April 27, 2018 17:33
-
-
Save lightsofapollo/aaac4e1224adb4af9281c0a1ca6ffd31 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
scalar DateTime @class(name: "Date") | |
enum TaskStatus { | |
Created | |
InProgress | |
Done | |
} | |
input InputCreateTaskEntity { | |
ownerEmail: String! @IsEmail | |
note: String | |
description: String! @IsString(min: 10) | |
dueDate: DateTime @DateIsFuture | |
status: TaskStatus! | |
} | |
interface HasId { | |
id: ID! | |
} | |
type WithID { | |
id: ID! @alias(name: "_id") | |
} | |
type TaskEntity implements HasId | |
@spread(type: InputCreateTaskEntity) | |
@spread(type: WithID) { | |
# override input type. | |
note: String! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment