hasura / hasura/graphql-engine

Can't access Remote Schema Directives

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

Description

I did not find anything in the documentation related to directives in remote schemas.
We connected our Craft CMS Backend as a remote schema to hasura which works flawlessly.

Unfortunately we can't access the directives Craft CMS uses in its schema:

```graphql
{
entries {
... on frontpage_frontpage_Entry {
title
introImage(withTransforms: ["intro"]) {
__typename
url @transform(width: 300)
}
}
}
}
```
### Craft CMS (Version 3.6.12):
![image](https://user-images.githubusercontent.com/4189607/116385349-ffd89e80-a818-11eb-9bc5-032caf4b7004.png)

### Hasura (Version v2.0.0-alpha.9):
![image](https://user-images.githubusercontent.com/4189607/116385467-1b43a980-a819-11eb-985a-5d305f7061eb.png)

Contributor guide

Open the contributing guide

Research direction

Start by reviewing Hasura's remote schema handling and how the Craft CMS GraphQL schema exposes the @transform directive. Compare the directive's presence in the remote schema with the shown Hasura query behavior; done means remote directives are accessible or the limitation is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.