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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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