You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assume there exists a relationship between table and a native query. Please refer this doc for example.
Now If user uses native query (nested object) in where clause as part of filter expression, it will throw error. Without including it in where clause it works fine.
There is a limitation in hasura where we don't support boolean expressions across relationships to Native Queries, however we include them in the schema as shown here in the screenshot. This means we should either
work on feature support for having boolean expressions across relationships to Native queries
OR don't show Native query relationship field in where clause hence as part of GQL schema (based on introspection)
How to reproduce the issue?
Add database and track some tables which you want to expose as part of GraphQL API
Create a Native Query
Add a relationship between table and Native Query as per this doc
Perform a GQL query with root field of tracked table and include NQ (nested object) in where clause
Screenshots or Screencast
Any possible solutions/workarounds you're aware of?
Only workaround is to not use where clause if you are selecting Native query relationship(nested object) as part of filter operation. But this can also be part of feature request since this is a known limitation.
Keywords
Native Queries Filter Relationship
The text was updated successfully, but these errors were encountered:
Version Information
Server Version: 2.44
Environment
Cloud
What is the current behaviour?
Assume there exists a relationship between table and a native query. Please refer this doc for example.
Now If user uses native query (nested object) in
where
clause as part of filter expression, it will throw error. Without including it inwhere
clause it works fine.Query
Response
What is the expected behaviour?
There is a limitation in hasura where we don't support boolean expressions across relationships to Native Queries, however we include them in the schema as shown here in the screenshot. This means we should either
where
clause hence as part of GQL schema (based on introspection)How to reproduce the issue?
where
clauseScreenshots or Screencast
Any possible solutions/workarounds you're aware of?
Only workaround is to not use
where
clause if you are selecting Native query relationship(nested object) as part of filter operation. But this can also be part of feature request since this is a known limitation.Keywords
Native Queries Filter Relationship
The text was updated successfully, but these errors were encountered: