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

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