Giter VIP home page Giter VIP logo

Comments (4)

yaacovCR avatar yaacovCR commented on May 14, 2024 1

What is the purpose of the nodes field? Why do you want it on root fields but not when linking schemas?

For long term ideas about query/result processing, see here: https://yaacovcr.github.io/apollo-stitcher/tutorial-Motivating%20Example.html

I think use of PreStitch pseudofragment is cool, want to integrate that into fork in long term, as well as provide method of only traversing result once with multiple transforms, will likely require making a single transform that can do multiple things...

from graphql-mesh.

dotansimha avatar dotansimha commented on May 14, 2024

It's actually coming from the automatically-created schema (for example, the output of postgraphile), or from a remote schema (for example, GitHub GraphQL schema). So I have no control over that.
The idea behind removing it is to allow simple inerface and usage for the consumer.
In this case, it uses Github_search behind the scenes, and it might returns multiple types, not only Github_User, under nodes. But from the consumer point-of-view, we would like to expose it directly as Github_User and not as Node, because we are able to make sure that's only those object will be returned by the root API.

It does seems like the stitcher idea might work in this case, it might be useful for the fork and mesh as well :)

Thanks @yaacovCR !

from graphql-mesh.

dotansimha avatar dotansimha commented on May 14, 2024

Implemented by @ardatan in: #142

from graphql-mesh.

ardatan avatar ardatan commented on May 14, 2024

Available in 0.0.17 🎉

from graphql-mesh.

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.