Problem/Motivation

We need to mimic the viewfield integration with GraphQL compose for our version of 'viewfield' plugin.

Proposed resolution

Adapt the example in graphql_compose/views logic to our subfield plugin.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

apmsooner created an issue. See original summary.

apmsooner’s picture

Status: Active » Needs review
apmsooner’s picture

Testing instructions:

  1. Enable module dependencies
  2. Add a custom field to any entity type
  3. Make sure you have at least 1 view with a graphql display type
  4. Add a subfield of type 'viewfield' and any other subfields you like
  5. Configure the widget viewfield subfield options to enable any views with graphql display types.
  6. Optionally - configure the custom field to allow 1 or unlimited values.
  7. Create the entity with attached custom field
  8. Test the advanced options in the viewfield subfield: arguments (tokens are supported) & items to display
  9. Test output in graphql explorer

Module dependencies:

  • custom_field_viewfield
  • custom_field_graphql
  • graphql_compose_views
apmsooner’s picture

Assigned: apmsooner » Unassigned
Status: Needs review » Fixed

  • apmsooner committed ef9c2948 on 3.1.x
    Issue #3498679 by apmsooner: GraphQL compose viewfield integration
    
apmsooner’s picture

Status: Fixed » Closed (fixed)