Allow to explicitly attach to an entity type and / or its bundles.#20
Allow to explicitly attach to an entity type and / or its bundles.#20das-peter wants to merge 4 commits intodrupal-graphql:8.x-1.xfrom
Conversation
|
I checked this request and it worked since the moment I get the view as a field inside a node, but I have configured a contextual filter to get information from the Content ID from the URL and the contextual filter doesn't work with the default argument provided you need to specify always the contextual filter in the graphql query. I want to achieve to have a content type "Landingspage" and choose which content types to show in a views that I attached using this patch to the Landingspage bundle and I want the view to get the contextual filter of content type from the node ID that is displayed on. I want to create pages with lists of node of bundles where I can choose with a field in the bundle which content types to show. But forcing the contextual filter in the graphql query make the purpose of being dynamic not possible. |
…and / or its bundles.
842c338 to
dc78c26
Compare
|
@eescribanoc The latest patch should go into the direction you were mentioning. The module now supports token arguments & page limit similar to how EVA does that. |
It would be nice if we could extend that automatic detection of "relations" using views arguments to allow to actually configure where a view is attached.
This basically is the EVA approach for GraphQL and quite some code has been borrowed from EVA to create this change.