Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.81 KB

README.md

File metadata and controls

25 lines (17 loc) · 1.81 KB

GraphQL Views for Drupal

Build Status Code Coverage Code Quality

With graphql_views enabled a GraphQL views display can be added to any view in the system.

Results can be sorted, filtered based on content fields, and relationships can be added. There is also the option to return either the full entities, just a selection of fields, or even search results taken straight from a search server.

Any GraphQL views display will provide a field that will adapt to the views configuration:

  • The fields name will be composed of the views and displays machine names or configured manually.
  • If the view is configured with pagination, the field will accept pager arguments and return the result list and count field instead of the entity list directly.
  • Any exposed filters will be added to the filters input type that can be used to pass filter values into the view.
  • Any contextual filters will be added to the contextual_filters input type.
  • If a contextual filters validation criteria match an existing GraphQL type, the field will be added to this type too, and the value will be populated from the current result context.

Read more on:

Please also refer to the main Drupal GraphQL module for further information.