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
Get the most trusted enterprise browser Icon
Get the most trusted enterprise browser

Advanced built-in security helps IT prevent breaches before they happen

Defend against security incidents with Chrome Enterprise. Create customizable controls, manage extensions and set proactive alerts to keep your data and employees protected without slowing down productivity.
Download Chrome
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