Translate APIs described by OpenAPI Specifications (OAS) into GraphQL. The Command Line Interface (CLI) provides a convenient way to start a GraphQL server wrapping an API for a given OpenAPI Specification. Use OpenAPI-to-GraphQL as a library in your application to generate GraphQL schemas. The GraphQL interface is created around the data definitions in the given OAS, not around the endpoints, leading to a natural use of GraphQL. Nested data Links defined in the OAS are used to create nested data structures, allowing for (deeply) nested queries. Automatic query resolution Automatically generated resolvers translate (nested) GraphQL queries to API requests. Request results are translated back to GraphQL responses. Mutations Non-safe, non-idempotent API operations (e.g., POST, PUT, DELETE) are translated to GraphQL mutations. Input payload is type-checked. GraphQL subscriptions allow clients to receive a stream of events, such as updates whenever data changes on the GraphQL server.

Features

  • Use OpenAPI-to-GraphQL as a library in your application to generate GraphQL schemas
  • Install OpenAPI-to-GraphQL as a dependency
  • Require OpenAPI-to-GraphQL and use the createGraphQLSchema function
  • OpenAPI-to-GraphQL currently supports authentication via API Key and basic auth
  • API Sanitation
  • Custom request options
  • Swagger and OpenAPI 3 support

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow OpenAPI-to-GraphQL

OpenAPI-to-GraphQL Web Site

Other Useful Business Software
Deploy Apps in Seconds with Cloud Run Icon
Deploy Apps in Seconds with Cloud Run

Host and run your applications without the need to manage infrastructure. Scales up from and down to zero automatically.

Cloud Run is the fastest way to deploy containerized apps. Push your code in Go, Python, Node.js, Java, or any language and Cloud Run builds and deploys it automatically. Get fast autoscaling, pay only when your code runs, and skip the infrastructure headaches. Two million requests free per month. And new customers get $300 in free credit.
Try Cloud Run Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of OpenAPI-to-GraphQL!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Command Line Tools

Registered

2023-03-02