Skip to content
Advertisement

Hasura Graphql does not return all documents when multiple foreign keys exist in a table to the same foreign field

Query:

Response:

Expected:

Why are the last two documents not showing up from the first query?

Connection table definition:

I know this could be more of a SQL question, but it would be great if you can show the graphql version too

Advertisement

Answer

You have to create two relationships between users table and connections table, enter image description here

Then query :

Output: enter image description here

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement