drupal-graphql / drupal-graphql/graphql

Cannot fetch multiple content types from Group

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

Description

Based on what I read in #542, I came up with this query for fetching content from a group. My problem is that only content of one of the content types is returned (`NodeOfficePage`). I've checked global permissions, group permissions, publish status, Group module config etc without help.

What am I missing, and how can I debug this? Does it have to do with the `office-group_node-office_page` filter condition?

```gql
query ($id: String!) {
groupById(id: $id) {
... on Group {
reverseGidGroupContent(filter: {
conditions: {
field: "type.target_id",
value: ["office-group_node-office_page"]
}
}) {
entities {
... on GroupContent {
entityIdOfGroupContent {
entity {
... on NodeOfficePage {
nid
title
__typename
fieldShortName
}
... on NodeArticle {
nid
title
__typename
fieldSubtitle
}
}
}
}
}
}
}
}
}
```

I'm running 3.0-rc3 version of the GraphQL module, and latest Group module.

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.