Skip to content

Commit

Permalink
Add new variable and regen graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
ikprk committed Jul 22, 2024
1 parent 73b2211 commit 92a6d65
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions packages/atlas/src/api/queries/notifications.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ query GetNotificationsCount($where: NotificationWhereInput!) {
}
}

query GetNotificationsConnection($recipient: RecipientTypeWhereInput!, $first: Int!, $after: String) {
query GetNotificationsConnection(
$recipient: RecipientTypeWhereInput!
$first: Int!
$after: String
$dispatchBlock: Int!
) {
notificationsConnection(
first: $first
after: $after
orderBy: createdAt_DESC
where: { inApp_eq: true, recipient: $recipient }
orderBy: [dispatchBlock_DESC, id_DESC]
where: { inApp_eq: true, recipient: $recipient, dispatchBlock_lte: $dispatchBlock }
) {
pageInfo {
hasNextPage
Expand Down

0 comments on commit 92a6d65

Please sign in to comment.