Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect types - QueryMap #246

Open
affanshahid opened this issue Oct 28, 2018 · 1 comment
Open

Incorrect types - QueryMap #246

affanshahid opened this issue Oct 28, 2018 · 1 comment

Comments

@affanshahid
Copy link

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)

@maticzav
Copy link
Collaborator

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. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants