Skip to content

views as fields on nodes #171

@rkoberg

Description

@rkoberg

Is there any way to use an view as a entity reference or view reference (https://www.drupal.org/project/viewsreference) or ?? as a field on a node.

Let's say I have a "group" node content type. I also have a "group_post" node content type. The group_post has an entity reference to the group. On the display/graphql of a group node I want to list any associated group_posts. I have a view that does this, but it takes an argument (the group's nid). I have tried using EVA, viewsreference, and regular entity reference to the view. I have set the filter to "This graphql (override)". Graphical sees the new field (as fieldGroupPosts). It is shown as a field that has an array of Strings. Using arguments causes an error (e.g. fieldGroupPosts(filter: {field_group_target_id: "4"}))

Any ideas on how to make this work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions