I am trying to follow the nextauth hasura tutorial, but I am getting the following error:
message: `field 'accounts' not found in type: 'users_bool_exp':
POST /api/auth/signin/github 302 in 8ms
[next-auth][error][adapter_error_getUserByAccount]
https://next-auth.js.org/errors#adapter_error_getuserbyaccount field 'accounts' not found in type: 'users_bool_exp': {"response":{"errors":[{"message":"field 'accounts' not found in type: 'users_bool_exp'","extensions":{"path":"$.selectionSet.users.args.where.accounts","code":"validation-failed"}}],"status":200,"headers":{}},"request":{"query":"query GetUsers($where: users_bool_exp!) {n users(where: $where) {n ...Usern }n}nnfragment User on users {n __typenamen idn namen emailn imagen emailVerifiedn}","variables":{"where":{"accounts":{"provider":{"_eq":"github"},"providerAccountId":{"_eq":"790821"}}}}}}
Looking at the callstack shows that the error is coming from the hasura adapter
' at makeRequest (\node_modules\graphql-request\build\cjs\index.js:310:15)n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)n' +
' at async getUserByAccount (\node_modules\next-auth-hasura-adapter\dist\index.js:46:25)',
name: 'Error'
I am new to nextauth and hasura and looking for tips on resolving this. All help is appreciated.