mirror of
https://github.com/friebetill/TubeCards.git
synced 2025-08-16 11:21:56 +08:00
25 lines
628 B
GraphQL
25 lines
628 B
GraphQL
# import '../fragments/card_fragment.graphql'
|
|
# import '../fragments/deck_fragment.graphql'
|
|
|
|
mutation JoinDeck($deckInviteId: ID!, $firstOfDueCardConnection: Int!) {
|
|
joinDeck(deckInviteId: $deckInviteId) {
|
|
deck {
|
|
...DeckFragment
|
|
# We need the nodes to populate the DueCardConnection in case the user
|
|
# wants to learn these cards directly.
|
|
completeDueCardConnection: dueCardConnection(
|
|
first: $firstOfDueCardConnection
|
|
) {
|
|
nodes {
|
|
...CardFragment
|
|
}
|
|
pageInfo {
|
|
endCursor
|
|
hasNextPage
|
|
}
|
|
totalCount
|
|
}
|
|
}
|
|
}
|
|
}
|