GithubHelp home page GithubHelp logo

Comments (4)

f avatar f commented on June 1, 2024

from graphql.js.

flewellyn avatar flewellyn commented on June 1, 2024

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.

flewellyn avatar flewellyn commented on June 1, 2024

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.

flewellyn avatar flewellyn commented on June 1, 2024

I suppose we could close this issue, if there's nothing more to say about it?

from graphql.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.