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

You Might Also Like
ContractSafe: Contract Management Software Icon
ContractSafe: Contract Management Software

Take Control Of Your Contracts Without Wrecking The Budget

Ditch those spreadsheets, shared drives & crazy-expensive solutions with too many bells & whistles. ContractSafe offers the simplest way to manage your contracts efficiently without breaking the bank.
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