mirror of
https://github.com/friebetill/TubeCards.git
synced 2025-08-16 19:30:54 +08:00
29 lines
594 B
GraphQL
29 lines
594 B
GraphQL
# import '../fragments/card_fragment.graphql'
|
|
# import '../fragments/deck_fragment.graphql'
|
|
# import '../fragments/offer_fragment.graphql'
|
|
|
|
mutation Subscribe($offerId: ID!, $first: Int!) {
|
|
subscribe(offerId: $offerId) {
|
|
offer {
|
|
...OfferFragment
|
|
deck {
|
|
...DeckFragment
|
|
}
|
|
}
|
|
viewer {
|
|
# The id is important for ferry to normalize the data
|
|
id
|
|
dueCardConnection(first: $first) {
|
|
nodes {
|
|
...CardFragment
|
|
}
|
|
pageInfo {
|
|
endCursor
|
|
hasNextPage
|
|
}
|
|
totalCount
|
|
}
|
|
}
|
|
}
|
|
}
|