Files
TubeCards/lib/graphql/mutations/join_deck.graphql
friebetill 80f218097d Initial commit
Add Space version 2.0.1
2022-03-28 14:56:00 +02:00

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
}
}
}
}