hasura / hasura/graphql-engine
Building metadata with non-existent subgraphs succeeds without warning or errors
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
When building the metadata and defining relationships in the HML, if you reference a non-existent subgraph the metadata will still build and then the relationships won't appear.
```
---
kind: Relationship
version: v1
definition:
name: HelloWorld
sourceType: Users
target:
command:
name: Hello
subgraph: some_subgraph_that_doesnt_exist // This silently fails
mapping:
- source:
fieldPath:
- fieldName: name
target:
argument: name
```
It would be good to validate the metadata and warn the user if a subgraph doesn't exist.
Contributor guide
Research direction
No files, tests, or entry points are named. Start by locating the metadata-building path for Relationship definitions and reproduce the HML example with a nonexistent subgraph; done means the build reports a warning or error instead of silently omitting the relationship.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql
- Domain
- backend-api-design
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100