Last active
February 21, 2020 11:08
-
-
Save seandearnaley/a0dff33a23bf707493dffa4881ff4fb8 to your computer and use it in GitHub Desktop.
Card.graphql Connection Types (Server)
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
interface Node { | |
id: ID! | |
created: DateTime! | |
updated: DateTime | |
} | |
type Card implements Node { | |
id: ID! | |
number: Int | |
label: String | |
description: String | |
created: DateTime! | |
updated: DateTime | |
categories: [Category!]! | |
} | |
type CardConnection { | |
pageInfo: PageInfo! | |
edges: [CardEdge!]! | |
} | |
type CardEdge { | |
cursor: String! | |
node: Card! | |
} | |
input CardInput { | |
number: Int | |
label: String | |
description: String | |
categoryId: ID | |
} | |
type CardsUpdatedResponse { | |
success: Boolean! | |
message: String! | |
card: Card! | |
} | |
type PageInfo { | |
hasNextPage: Boolean! | |
hasPreviousPage: Boolean! | |
startCursor: String | |
endCursor: String | |
totalCount: Int | |
} | |
enum DirectionEnum { | |
ASC | |
DESC | |
} | |
type Query { | |
cards(first: Int, last: Int, after: String, before: String, orderByColumn: String, orderByDirection: DirectionEnum, categoryId: ID): CardConnection! | |
card(id: ID): Card! | |
categories(cardIds: String, orderByColumn: String, orderByDirection: DirectionEnum): [Category!]! | |
category(id: ID): Category! | |
node(id: ID): Node! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment