GraphQL Field Views Arguments provides a new field type for any content entity.

Then, this field can render a view with any field of the entity injected as arguments.

This module has been designed solely for use with the GraphQL API. This does not work if you are not decoupled.

Use cases

Combine two requests into one

You currently have the following:

  • You retrieve a value with a first request.
  • You use this value in a second request as an argument of a view.

⇒ You can use this module to combine the two requests into a single one.

Example 2

In addition you can filter by a field of a parent current entity, for example if your entity is an paragraph you can filter with an field parent value.

Similar modules

Subrequests

You can achieve the same functionality with the Subrequests (please note the S at the end of the name) module: https://www.drupal.org/project/subrequests

Remaining tasks

  • php unit test
  • documentation
  • create a real formatter to display in Drupal front?
Supporting organizations: 

Project information

  • caution Seeking new maintainer
    The current maintainers are looking for new people to take ownership.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Project categories: Decoupled
  • Ecosystem: GraphQL, Views (for Drupal 7)
  • Created by musa.thomas on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    There are currently no supported stable releases.

Releases