Skip to content

Issue with Prisma binding #164

Closed
Closed
@marktani

Description

@marktani

@OGNeutron commented on Fri May 11 2018

When I graphql-prepare I am getting a type issue with Prisma in prisma.ts


Property 'query' in type 'Prisma' is not assignable to the same property in base type 'Prisma'.
  Type 'Query' is not assignable to type 'QueryMap'

@marktani commented on Fri May 11 2018

Please share a minimal reproduction so we can look into this 🙂


@OGNeutron commented on Fri May 11 2018

Alright, I just do the normal prisma deploy, the database sets up fine and even the post hooks show fine:

post-deploy:
Running graphql get-schema --project db √
Running graphql prepare √

But they don't actually generate the files, so I do it manually and it shows up, but than I get that issue with the prisma.ts file where all three, query, mutation and subscriptions give similar errors.

[ts]
Property 'mutation' in type 'Prisma' is not assignable to the same property in base type 'Prisma'.
  Type 'Mutation' is not assignable to type 'QueryMap'.
    Property 'createNotification' is incompatible with index signature.
      Type '(args: { data: NotificationCreateInput; }, info?: string | GraphQLResolveInfo) => Promise<Notific...' is not assignable to type '(args?: { [key: string]: any; }, context?: { [key: string]: any; }, info?: string | GraphQLResolv...'.
        Types of parameters 'info' and 'context' are incompatible.
          Type '{ [key: string]: any; }' is not assignable to type 'string | GraphQLResolveInfo'.
            Type '{ [key: string]: any; }' is not assignable to type 'GraphQLResolveInfo'.

https://github.com/OGNeutron/Prisma_main_hub

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions