Skip to content

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

@marian2js

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.

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