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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start 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