mirror of
https://github.com/friebetill/TubeCards.git
synced 2025-08-15 02:26:03 +08:00
28 lines
489 B
GraphQL
28 lines
489 B
GraphQL
# import '../fragments/card_fragment.graphql'
|
|
|
|
query DeckCards(
|
|
$deckId: ID!
|
|
$first: Int!
|
|
$orderByField: CardsOrderField
|
|
$orderByDirection: OrderDirection
|
|
$after: String
|
|
) {
|
|
deck(id: $deckId) {
|
|
id
|
|
cardConnection(
|
|
first: $first
|
|
after: $after
|
|
orderBy: { field: $orderByField, direction: $orderByDirection }
|
|
) {
|
|
totalCount
|
|
nodes {
|
|
...CardFragment
|
|
}
|
|
pageInfo {
|
|
endCursor
|
|
hasNextPage
|
|
}
|
|
}
|
|
}
|
|
}
|