Comments (4)
from graphql.js.
I can paste the code here:
`gq = graphql("http://localhost:9999/query");
wb = gq(
'query { worldBorders { gid, name } }');
wb().then(function (r) { console.log(r); }).catch(function (e) { console.log(e); });`
That's basically it. Chrome's DevTools show that the data is being returned. A sample:
{"worldBorders":[{"gid":"1","name":"Antigua and Barbuda"},{"gid":"2","name":"Algeria"}...]}
It's all there. But then() is never called.
from graphql.js.
I decided to try and debug the library myself. I'd been using the minified version, and so I grabbed the non-minified version instead. Lo and behold, trying it out before I even modified it to add debugging statements, it worked.
So, whatever's wrong is wrong with graphql.min.js, and not with graphql.js.
from graphql.js.
I suppose we could close this issue, if there's nothing more to say about it?
from graphql.js.
Related Issues (20)
- Option to build and return 'body' parsed
- is ie11 supported?
- JSON parse error when using OAuth token HOT 1
- TypeError: query.trim is not a function HOT 1
- `client.query().then` is not a function in 0.6.2 version HOT 1
- v0.6.3 cannot make requests from node (__doRequest is not a function) HOT 4
- Direct query execution using async await HOT 1
- [Feature request] support for pre-built queries
- Headers not working HOT 2
- Unable to get any query to run on GitHub's API - `.then` is not a function error HOT 7
- Update fragmentPath method to not use Function constructor (CSP 'unsafe-eval' issue)
- Is jquery dropped? HOT 1
- Es-module variant HOT 1
- Body is not defined / Must provide a query string HOT 2
- Can this be added in any CDN like JS deliver? HOT 1
- Webpack breaks isomorphic code - graphql.js adds 25kb gzipped! HOT 4
- POST body missing. Did you forget use body-parser middleware? HOT 6
- cut larger jsons
- Query merging does not work correctly. HOT 2
- Headers not working (credentials: 'included'?) HOT 1
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.js.