Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xanthous-tech/grpc-graphql-schema
Convert gRPC proto definition into GraphQL Schema
https://github.com/xanthous-tech/grpc-graphql-schema
graphql graphql-schema grpc typescript
Last synced: about 1 month ago
JSON representation
Convert gRPC proto definition into GraphQL Schema
- Host: GitHub
- URL: https://github.com/xanthous-tech/grpc-graphql-schema
- Owner: xanthous-tech
- License: mit
- Created: 2019-01-12T03:14:15.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-14T22:56:36.000Z (over 4 years ago)
- Last Synced: 2024-10-09T14:06:13.169Z (about 1 month ago)
- Topics: graphql, graphql-schema, grpc, typescript
- Language: JavaScript
- Size: 208 KB
- Stars: 40
- Watchers: 11
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - grpc-graphql-schema - tech | 29 | (JavaScript)
README
# Grpc Graphql Schema
Convert gRPC proto Definition into GraphQL Schema
[Slides @ GraphQL BKK 4.0](https://docs.google.com/presentation/d/11sw3yK7p6xYcES9Wsjco7z3lGgmYlefnNrqhZ6vaYvA/edit?usp=sharing)
[Medium Article](https://medium.com/xanthous/translating-grpc-services-into-graphql-6a8e49556d96)
# How to Use
```javascript
const { getGraphqlSchemaFromGrpc } = require('grpc-graphql-schema');getGraphqlSchemaFromGrpc({
endpoint: 'localhost:50051',
protoFilePath: '/path/to/ServiceDefinition.proto',
serviceName: 'GrpcServiceName',
packageName: 'name.package',
}).then(schema => {
// load schema in graphql server
});
```