Skip to content

Prisma queryType Property 'id' does not exist on type '{}'. #959

Closed Answered by hayes
meotimdihia asked this question in Q&A
Discussion options

You must be logged in to vote

you would generally need to configure your context type when setting up the builder

eg:

const builder = new SchemaBuilder<{ Context: { user: { id: string } } }>({...})

This context type should match whatever context type you create in your server

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@hayes
Comment options

Answer selected by meotimdihia
@meotimdihia
Comment options

@hayes
Comment options

@hayes
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants