`prisma.query` is of type `QueryMap`. `prisma.quer...
# orm-help
l
prisma.query
is of type
QueryMap
.
prisma.query.users
has the following signature:
Copy code
(args?: {
    [key: string]: any;
}, context?: {
    [key: string]: any;
}, info?: string | GraphQLResolveInfo) => Promise<any>
e
Hi! It seems like you forgot to give the second argument: "context". You only gave the "args" and "info" arguments.
l
Tried making it
prisma.query.users({}, {}, '{ id name }')
and got an error,
prisma.query.users({}, null, '{ id name }')
works though. Thanks.
Would it be worth updating the docs to show this, or maybe update the type declaration.