Comments (5)
Hey, I think your issue is you need to pass a URL
instance.
from graphql-request.
If that's correct, in the docs (and in the past afaik) a string is passed.
But even so, it only accepts a string as you can see:
![Screenshot 2024-07-12 at 18 29 01](https://private-user-images.githubusercontent.com/6538706/348329665-ab73c5e3-0384-4170-af4f-e5227f254788.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNDM3NDAsIm5iZiI6MTcyNDI0MzQ0MCwicGF0aCI6Ii82NTM4NzA2LzM0ODMyOTY2NS1hYjczYzVlMy0wMzg0LTQxNzAtYWY0Zi1lNTIyN2YyNTQ3ODgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjFUMTIzMDQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjEwNjkwODIxY2Y1NGZiMzg5NzRiNjE1N2Q5ZGNmMDhjYjJmODY5Y2ZkNjIwYjExYTI3NDc4YzUyYjMyZGI3NyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.UOU108e2D4wSJxd-V9_MYCyVN6z2Uyd8jEl7xTQ_WSk)
from graphql-request.
Are the types and runtime disagreeing? What version of graphql-request exactly?
from graphql-request.
No, the types seems to be correct. i.e:
The version I'm using is 7.1.0
but try to downgrade to 7.0.0
ad 6.1.0
but got the same issue.
from graphql-request.
A PR is welcome if you find the issue in this library. It's not clear to me what's going on. My focus is on Graffle now.
from graphql-request.
Related Issues (20)
- Support grpahql-config HOT 1
- Export codec types and helpers
- Not handling responses with errors: null
- Cannot find module` graphql-request` HOT 3
- Issue with types since version 7.0.1 HOT 1
- Is `responseMiddleware` not a part of the `.request` flow? HOT 1
- The query not have an operationName HOT 1
- I can`t import the library in latest version HOT 2
- Support TypedDocumentString HOT 1
- ClientError not recieving errors from response HOT 1
- not able to process errorPolicy
- error TS2307 when upgraded to version 7.1.0 HOT 1
- Allow to specify fetch implementation HOT 2
- IE11 compatibility HOT 1
- Prefill generated client endpoint when possible
- Add support for document batches
- Finish Graffle documentation
- Polish Roundup
- Make orThrow methods come from an extension
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql-request.