question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG][strapi-graphql] graphql-request type issue

See original GitHub issue

Hi,

Due to the difference in typescript between the latest version of graphql-request and the version of graphql-request@3.5.0 used in the strapi-graphql package, I get an error as follows. Can be upgrade or change to other usages of npm.

Argument of type 'import("D:/*****/node_modules/graphql-request/dist/index").GraphQLClient' is not assignable to parameter of type 'import("D:/*****/node_modules/@pankod/refine-strapi-graphql/node_modules/graphql-request/dist/index").GraphQLClient'. Type 'GraphQLClient' is missing the following properties from type 'GraphQLClient': batchRequests, setEndpointts(2345)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
emehmetcommented, Jul 7, 2022

Thank you @omeraplak, This is good news. Great job!

0reactions
omeraplakcommented, Jul 7, 2022

Hey @emehmet , We’ve released @pankod/refine-graphql@4.1.0 with graphql-request v4 support 💥

Also, you can check out GraphQL doc -> https://refine.dev/docs/guides-and-concepts/data-provider/graphql/#usage

Read more comments on GitHub >

github_iconTop Results From Across the Web

Forming calls with GraphQL - GitHub Docs
We know issues is a connection because it has the IssueConnection type. To retrieve data about individual issues, we have to access the...
Read more >
Making GraphQL Requests using HTTP Methods
To make a GraphQL request using the POST HTTP method, we pass the following properties into the JSON body of the request.
Read more >
Five Common Problems in GraphQL Apps (And How to Fix ...
Namely, you need one schema for your database, and another one for your GraphQL endpoint. Not only is it frustrating to have to...
Read more >
Build a GraphQL app in Node.js with TypeScript and graphql ...
So how do we solve this problem? This is where graphql-request comes in. It is an open source library which lets users perform...
Read more >
Serving over HTTP - GraphQL
Your GraphQL HTTP server should handle the HTTP GET and POST methods. GET request#. When receiving an HTTP GET request, the GraphQL query...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found