Skip to content

Unknown arg provider_providerAccountId in where.provider_providerAccountId for type accountWhereUniqueInput. Available args: #4653

Answered by HT-Moh
HT-Moh asked this question in Help
Discussion options

You must be logged in to vote

Actually, almost every time I updated the library I have such issues, the fields change often and their names do not follow the naming convention for DB, another issue is the last version of prisma, npx prisma db pull cmd seems to override the @map so I needed to update the DB to make everything works
Here is what works for me on next-auth 4.15.0 prisma 4.5.0 @next-auth/prisma-adapter 1.0.5
change table name accounts to account
change table name users to user
change attribute on provider_account_id to providerAccountId
change FK user_id to userId (FK on account table)
change attribute email_verified to emailVerified on user table
Make provider and providerAccountId unique
On Hasura if you…

Replies: 9 comments 15 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by HT-Moh
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mugidar
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
12 replies
@KeturahDev
Comment options

@Alex87464
Comment options

@deepakyadav20322
Comment options

@dimerbwimba
Comment options

@mustafazuberiexp
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@isabelleilyia
Comment options

@umanda
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
prisma @auth/prisma-adapter typeorm @auth/typeorm-adapter
Converted from issue

This discussion was converted from issue #4477 on May 31, 2022 15:15.