Views exposed filters not available in GraphiQL

Created on 3 August 2023, over 1 year ago
Updated 25 January 2024, 10 months ago

Problem/Motivation

There are a few issues we are finding on the site where some Views exposed filters are not being displayed in the GraphQL explorer due to a variety of reasons:

  • If the options are set on the filter, the filter does not show up on GraphQL
  • If the filter is being limited to a few selected items, the filter does not show up on GraphQL
  • If the filter is based on a Search API custom index field, the filter does not show up on GraphQL

Steps to reproduce

- Add some content
- Create a new Search API Solr index to index the necessary content types
- Add the `content_type` as an index field
- Index the field
- Create a new View based on the Search API index
- Add the `content_type` field as an exposed filter
- Go to GraphQL and run an `entityByID` query on the 'View' for the new view
- Make sure the `content_type` is a filter underneath the ViewExecutable display
- Now, go back to the View and edit the `content_type` exposed filter and select only a few content types under "Options" and check "Limit list to selected items"
- Flush cache
- Go back to GraphQL and refresh the page
- Note, the `content_type` filter is gone

🐛 Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

🇮🇳India shabana.navas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @shabana.navas
  • Status changed to Closed: cannot reproduce 10 months ago
  • 🇨🇭Switzerland ayalon

    I think this is an issue of views. This module does not save or change an existing view in any way. If a filter is lost on the views settings, the bug is not related to this module.

Production build 0.71.5 2024