wesleyyoung / perch-query-builder

Dynamically build TypeORM queries based on GraphQL queries for NestJS and TypeORM
GNU General Public License v3.0
46 stars 9 forks source link

Graphql@16 type incompatibility #20

Open qathom opened 2 years ago

qathom commented 2 years ago

Describe the bug Hello, I recently updated my nestjs' project by following the official guide available here. Sadly, it looks like the new type definition of Graphql is not compatible with perch-query-builder. Is it planned to support Graphql@16?

Logs:

Argument of type 'import("/node_modules/graphql/type/definition").GraphQLResolveInfo' is not assignable to parameter of type 'import("/perch-query-builder/node_modules/graphql/type/definition").GraphQLResolveInfo'.
  Types of property 'fieldNodes' are incompatible.

To Reproduce Steps to reproduce the behavior:

  1. Create new nestjs project
  2. Install graphql (npm i @nestjs/graphql @nestjs/apollo graphql apollo-server-express)
  3. Install perch-query-builder.
  4. Run (npm run start:dev)

Expected behavior Compatibility with graphql@16.

Additional context NestJS update:

    "@nestjs/graphql": "^10.0.4",
    "@nestjs/platform-express": "^8.3.1",