Remote database relationship: make request and filter with remote field #8464
Unanswered
GilYounicorns
asked this question in
General
Replies: 1 comment
-
Hi. Have you created a relationship between the tables too? |
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.
-
Hello, i created hasura project with two databases and i created remote database relationship between them. In my database "Admin" i have table users. i created in this table remote object relation named company with table companies in database "InfoGreffe".
Now i want to get all users who has a company in 2020 but i got this error : Uncaught (in promise) Error: field "company" not found in type: 'users'.Here is my request
query: gql
query { users(where: { company: { created: { _eq: 2020 } }, }) { id username company { id name } } }
I can't identify what is wrong with my request. Can you help me?
Beta Was this translation helpful? Give feedback.
All reactions