Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notificationTypes filter not working with 1 filter on V2 API #152

Open
marian2js opened this issue Nov 8, 2023 · 0 comments
Open

notificationTypes filter not working with 1 filter on V2 API #152

marian2js opened this issue Nov 8, 2023 · 0 comments

Comments

@marian2js
Copy link

The following query returns an empty array of items:

query Notifications {
  notifications(request: { where: { notificationTypes: [MENTIONED] } }) {
    items {
      ... on MirrorNotification {
        id
      }
    }
  }
}

However, if the notificationTypes array includes any other type, it does return the mention notifications.

As a workaround, I duplicated the MENTIONED filter, which fixes the query:

query Notifications {
  notifications(request: { where: { notificationTypes: [MENTIONED, MENTIONED] } }) {
    items {
      ... on MirrorNotification {
        id
      }
    }
  }
}

I can reproduce the issue on Mainnet V2. I'm using profile ID #108433.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant