prisma-binding icon indicating copy to clipboard operation
prisma-binding copied to clipboard

Incorrect types - QueryMap

Open affanshahid opened this issue 7 years ago • 1 comments

Using the default typings (no codegen) with the Prisma class. When I trying to run a query, I get the following type error, even though the code runs as expected.

image

The QueryMap type expects the Context as the second argument and the selection set as the third argument. If I change my code according to this, it doesn't work as expected (selection set is ignored)

affanshahid avatar Oct 28 '18 23:10 affanshahid

Hey @affanshahid can you verify that this is still an issue? If so, would you mind composing a quick reproduction repo or CodeSandbox, whichever suits you better. 🙂

maticzav avatar Nov 20 '18 16:11 maticzav