For e.g. suppose we create a relationship with only static values, then no remote query is generated. If we add a hasura column in the API (but not use it in the join), then it works.
This is because of the function peelRemoteKeys here:
|
(neededHasuraFields (rrRemoteField remoteRelField)) |
neededHasuraFields is actually an empty array and this is used here for creating a Batch:
|
(fmap peelRemoteKeys keyedRemotes) |
For e.g. suppose we create a relationship with only static values, then no remote query is generated. If we add a hasura column in the API (but not use it in the join), then it works.
This is because of the function
peelRemoteKeyshere:graphql-engine/server/src-lib/Hasura/GraphQL/Execute/RemoteJoins.hs
Line 594 in 3c6ffad
neededHasuraFieldsis actually an empty array and this is used here for creating aBatch:graphql-engine/server/src-lib/Hasura/GraphQL/Execute/RemoteJoins.hs
Line 585 in 3c6ffad