Skip to content

Module Augumentation for User that has many to many fields on Adapter #11521

Closed Answered by ebratz
ebratz asked this question in Help
Discussion options

You must be logged in to vote

For anybody trying to achieve the same, I was able to make it work by extending the PrismaAdapter overriding the getSessionAndUser method with another prisma query that include the organization array as part of it.
Took me 3 days to figure out, maybe some docs improvements on that would be good. The starting point to discover this was debugging the adapter queries and the Adapter docs helped me as well

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ebratz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant