hasura / hasura/graphql-engine

Can't access sub selection of Remote Schema fields

Open
#6,866 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

We have Craft CMS connected as a Remote Schema in Hasura v2.0.0-alpha.10 which works great.
Unfortunatly some sub-fields are not accessible in the Query while the GraphQL Explorer is showing the fields without any error:
The query:
```graphql
{
entry(type:"frontpage") {
... on frontpage_frontpage_Entry {
introImage {
embeddedAsset {
html
image
type
imageWidth
imageHeight
}
}
}
}
}

```

Craft CMS GraphQL Explorer:
![image](https://user-images.githubusercontent.com/4189607/117007683-3b2c0f00-acea-11eb-9bc9-3a4b1c653df8.png)

Hasura GraphQL Explorer:
![image](https://user-images.githubusercontent.com/4189607/117007752-4b43ee80-acea-11eb-9006-46f7e3cbec94.png)

The plugin in question is https://github.com/spicywebau/craft-embedded-assets
As its working in Craft CMS my guess is that the problem is somewhere to find in the Remote Schema implementation.

If this error is unrelated to Hasura please let me know, then i will try to solve the problem with the Plugin-Author.

Thanks!

Contributor guide

Open the contributing guide

Research direction

No repository file or test is named in the report. Start by running the provided GraphQL query against Hasura v2.0.0-alpha.10 and comparing its Remote Schema fields with the Craft CMS GraphQL Explorer; done means determining why the embeddedAsset sub-selection is unavailable or confirming the issue belongs to the plugin.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.