Comments (8)
I really like this idea! We'll try to prioritize this and come up with a first mockup over the next few weeks.
Would be great to hear other people's thoughts and ideas on this as well! ๐
from graphql-yoga.
I've been playing around some more with this idea. This is what I've got so far:
- Whenever you call a delegate in
graphcool-binding
, the path to the current node and the delegate that is called is saved on the context - A custom formatResponse function is used on apollo-server to access that information from the context, and put it in an extensions object.
- The updated extension object looks something like:
bindings: [
{
"path": ["post, "comments"],
"binding": {
"name": "mydatasource",
"endpoint": "http://api.graph.cool/mydatasource/dev",
"path": ["query", "comments"]
}
}
]
from graphql-yoga.
This is really awesome @kbrandwijk. Let's see whether we can collaborate with the folks @apollographql on this, as this looks similar to the GraphQL tracing extension.
from graphql-yoga.
Yes, I took inspiration from that. I am already discussing this with them, because currently apollo-server has 2 hardcoded extensions and no way to specify another. Tooling is very limited there, the only place to do it is formatResponse
, but doing this 'under the covers' means being extra careful about how to wrap this when the user also specifies it's own formatResponse
.
See: apollographql/apollo-server#657 (comment)
from graphql-yoga.
Due to inactivity of this issue we have marked it stale
. It will be closed if no further activity occurs.
from graphql-yoga.
Due to inactivity of this issue we have marked it stale
. It will be closed if no further activity occurs.
from graphql-yoga.
Hey ๐, It seems like this issue has been inactive for some time. In need for maintaining clear overview of the issues concerning the latest version of graphql-yoga
we'll close it.
Feel free to reopen it at any time if you believe we should futher discuss its content. ๐
from graphql-yoga.
Hey, @Urigo from The Guild here!
You might know us from projects such as graphql-code-generator, envelop or graphql-tools.
For a long time we thought that the Javascript ecosystem is still missing a lightweight cross-platform, but still highly customizable GraphQL Server.
In the past the awesome Prisma team took on that great challenge and now we are happy to announce that we are continuing them and just released GraphQL Yoga 2.0 - Build fast, extensible, and batteries-included (Subscriptions, Serverless, File uploads support) GraphQL APIs in Node.js ๐
We have been working a long time on version 2.0 and have been using it in our clients projects for a few months now and shared a couple of alpha cycles here.
Thank you all for your feedback and suggestions, you made this release possible!
Please try Yoga out again, give us feedback and help us spread the word on the new release!
from graphql-yoga.
Related Issues (20)
- Error when aborting subscription with ยตWebSockets.js HOT 2
- graphql-yoga with gqtx docs HOT 2
- Unexpected order of properties in response HOT 1
- Fastify Context & schema TS types. HOT 1
- Project Roadmap
- Project Roadmap
- Network request is dropped after the first event is emitted on the Subscription over HTTP SSE HOT 1
- [plugins/prometheus] missing operation name in graphql_yoga_http_duration_count metric on status 400
- [integrations/fastify] Add documentation to enable SSE subscriptions HOT 4
- [useResponseCache] Provide server context to define session Id HOT 3
- docs(Getting started): Suggest code snippets that work without changes HOT 1
- `Must provide query string.` should not be an error HOT 6
- Project Roadmap
- Project Roadmap
- Document `waitUntil` function present in the server context
- [managed-federation] New plugin: `useManagedFederation` which loads and keeps up to date a GraphOS managed supergraph
- Typescript build fails for project using `type: module`
- uWebSockets duplicate set-cookie responses
- Add support for GraphiQL initial tabs HOT 2
- Setting `maskedErrors` to `true` in `development` mode has no effect HOT 2
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-yoga.