Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Issue with Prisma binding #2399

Closed
NeutronScott12 opened this issue May 11, 2018 · 3 comments
Closed

Issue with Prisma binding #2399

NeutronScott12 opened this issue May 11, 2018 · 3 comments

Comments

@NeutronScott12
Copy link

NeutronScott12 commented 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
Copy link
Contributor

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

@NeutronScott12
Copy link
Author

NeutronScott12 commented 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

@marktani
Copy link
Contributor

marktani commented May 11, 2018

Thanks a lot, I moved the issue moved to graphcool/prisma-binding #164 🙂

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

No branches or pull requests

2 participants