Skip to content

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

Description

@marian2js

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions