Skip to content

Instantly share code, notes, and snippets.

@lightsofapollo
Last active April 27, 2018 17:33
Show Gist options
  • Save lightsofapollo/aaac4e1224adb4af9281c0a1ca6ffd31 to your computer and use it in GitHub Desktop.
Save lightsofapollo/aaac4e1224adb4af9281c0a1ca6ffd31 to your computer and use it in GitHub Desktop.
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