Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building metadata with non-existent subgraphs succeeds without warning or errors #10583

Open
TristenHarr opened this issue Nov 1, 2024 · 0 comments
Labels
c/v3-engine V3 Metadata and Engine engine k/v3-bug Bug affecting Hasura v3 (DDN)

Comments

@TristenHarr
Copy link
Collaborator

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.

@TristenHarr TristenHarr added the k/v3-bug Bug affecting Hasura v3 (DDN) label Nov 1, 2024
@codedmart codedmart added c/v3-engine V3 Metadata and Engine engine labels Nov 20, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/v3-engine V3 Metadata and Engine engine k/v3-bug Bug affecting Hasura v3 (DDN)
Projects
None yet
Development

No branches or pull requests

2 participants