Comments (4)
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.
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.
Implemented by @ardatan in: #142
from graphql-mesh.
Available in 0.0.17 🎉
from graphql-mesh.
Related Issues (20)
- Application Insights on Azure
- Migration Documentation from v0
- Website documentation file JsonSchemaHandler.generated.md makes no sense HOT 1
- Support for the Gremlin Query Language/Gremlin server
- Specify server timeout in the configuration
- Serializable Stitched Schemas based on Stitching
- Rename and replace-field transforms on graphql source alone break the CLI
- Renamed input type field on graphql source is missing when using multiple sources
- Custom schema polling mechanism
- Batching for N+1 problem with objects HOT 1
- serve-cli: If uWebSockets is unable to be installed, use node:http
- Project Roadmap
- context missing in responseCache ifdef HOT 1
- Set headers from grpc source HOT 2
- Schema generation error for Swagger 2.0 default object value HOT 5
- Project Roadmap
- Project Roadmap
- Project Roadmap
- Project Roadmap
- Schema generation is non-deterministic
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-mesh.