Closed embiem closed 1 year ago
Hi, @embiem. Thanks for the PR.
What was the GraphQL query that you were trying to execute? Is it part of this guide? I'm unable to see the usage of accounts in the query example. Happy to merge with the right context.
@praveenweb hey. I wasn't running any query in particular, just the next-auth library as detailed in that guide. When trying to login it'd throw the error as next-auth depends on the accounts.userId -> users.id
relationship to exist.
I can double check to make sure.
Adds missing step to create the object relationship
accounts.userId -> users.id
.Description
While following the guide I was running into this issue:
It was solved by adding the object relationship as mentioned.
Steps to test and verify
Use the guide with current versions and try to login. It will throw the above error.
After adding the object relationship it will work, as it adds the necessary
accounts
field to theGetUsers
query.