drupal-graphql / drupal-graphql/graphql

Query all homepage blocks from GraphQL

Open
#986 0 comments 0 reactions 0 assignees View on GitHub
3.x
Dominant language
PHP
Stars
287
Forks
198
PR merge metrics
No merged PRs in 30d

Description

Hey guys,

Thank you for your amazing module.
I have just a question about it. Since few days, i make query to understand all possibilities of queries but I don't understand one thing.

I know that you can query all blocks in region for a node (ex Article type or other) but I'm trying to query all blocks for the HomePage.
I tried to make a query like this :
`{
route(path: "") {
...on EntityCanonicalUrl {
blocksByRegion(region: "content") {
entityLabel
}
}
}
}`

but it doesn't work... Can someone explain to me how I can make this ? Or if I must maybe make my own resolver ? Is it possible with 3.0 version ? :)

Thanks again and have a good week,

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.