Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dotansimha/graphql-binding
Auto-generated SDK for your GraphQL API (supports schema stitching & codegen)
https://github.com/dotansimha/graphql-binding
graphql graphql-binding schema-stitching sdk
Last synced: 11 days ago
JSON representation
Auto-generated SDK for your GraphQL API (supports schema stitching & codegen)
- Host: GitHub
- URL: https://github.com/dotansimha/graphql-binding
- Owner: dotansimha
- License: mit
- Created: 2017-12-15T09:23:44.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-18T15:45:55.000Z (over 2 years ago)
- Last Synced: 2024-10-22T18:21:09.056Z (19 days ago)
- Topics: graphql, graphql-binding, schema-stitching, sdk
- Language: TypeScript
- Homepage:
- Size: 1.05 MB
- Stars: 378
- Watchers: 14
- Forks: 59
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - graphql-binding - generated SDK for your GraphQL API (supports schema stitching & codegen) | dotansimha | 367 | (TypeScript)
README
# graphql-binding
# Deprecation Notice!
In the last few months, since [the transition of many libraries](https://www.prisma.io/blog/the-guild-takes-over-oss-libraries-vvluy2i4uevs) under [The Guild](http://the-guild.dev)'s leadership, We've reviewed and released many improvements and versions to [graphql-cli](https://github.com/Urigo/graphql-cli), [graphql-config](https://github.com/kamilkisiela/graphql-config) and [graphql-import](https://github.com/ardatan/graphql-import).
We've reviewed `graphql-binding`, had many meetings with current users and engaged the community also through the [roadmap issue](https://github.com/dotansimha/graphql-binding/issues/325).
What we've found is that the new [GraphQL Mesh](https://the-guild.dev/blog/graphql-mesh) library is covering not only all the current capabilities of GraphQL Binding, but also the future ideas that were introduced in the [original GraphQL Binding blog post](https://github.com/prisma-archive/prisma-blog-archive/blob/master/2018-01-12-reusing-and-composing-graphql-apis-with-graphql-bindings.mdx) and haven't come to life yet.
And the best thing - [GraphQL Mesh](https://the-guild.dev/blog/graphql-mesh) gives you all those capabilities, even if your source is not a GraphQL service at all!
it can be GraphQL, OpenAPI/Swagger, gRPC, SQL or any other source!
And of course you can even merge all those sources into a single SDK.Just like GraphQL Binding, you get a fully typed SDK (thanks to the protocols SDKs and the [GraphQL Code Generator](https://github.com/dotansimha/graphql-code-generator)), but from any source, and that SDK can run anywhere, as a connector or as a full blown gateway.
And you can share your own "Mesh Modules" (which you would probably call "your own binding") and our community already created many of those!
Also, we decided to simply expose regular GraphQL, so you can choose how to consume it using all the awesome [fluent client SDKs out there](https://hasura.io/blog/fluent-graphql-clients-how-to-write-queries-like-a-boss/).If you think that we've missed anything from GraphQL Binding that is not supported in a better way in GraphQL Mesh, please let us know!
## Overview
🔗 GraphQL bindings are **modular building blocks** that allow to embed existing GraphQL APIs into your own GraphQL server. Think about it as turning (parts of) GraphQL APIs into reusable LEGO building blocks. Bindings may be generated in JavaScript, TypeScript, or Flow.
> The idea of GraphQL bindings is introduced in detail in this blog post: [Reusing & Composing GraphQL APIs with GraphQL Bindings](https://www.prisma.io/blog/reusing-and-composing-graphql-apis-with-graphql-bindings-80a4aa37cff5/)
## Install
```sh
yarn add graphql-binding
```## Public GraphQL bindings
You can find practical, production-ready examples here:
- [`graphql-binding-github`](https://github.com/graphql-binding/graphql-binding-github)
- [`prisma-binding`](https://github.com/prisma/prisma-binding)> Note: If you've created your own GraphQL binding based on this package, please add it to this list via a PR 🙌
If you have any questions, share some ideas or just want to chat about GraphQL bindings, join the [`#graphql-bindings`](https://prisma.slack.com/messages/graphql-bindings) channel in our [Slack](https://slack.prisma.io/).