Remote Schemas with UUID primary key: only fields with arguments or subfields can be toggled #7338
Unanswered
opslock-benjamin
asked this question in
Question
Replies: 1 comment
-
@opslock-benjamin graphql-engine will require a field on the remote schema with argument(s) to satisfy the join condition. In the above example, you'll nee the type Query {
subtasks(taskId: ID!): [Subtask!]!
}
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is what GQLGEN schema looks like.
I can successfully run my local GraphQL server , run mutations and queries.
I have a Hasura table called Tasks which has a
uuid
primary key.When I try to add a remote relationship from Tasks -> (remote schema).Subtasks
I do not have the option to link
subtasks.task_uuid
totasks.uuid
What do I need to modify in my schema so that Hasura allows me to associate
subtasks.task_uuid
totask.uuid
?Beta Was this translation helpful? Give feedback.
All reactions