All Connectors
OpenAPI Lambda Connector
OpenAPI Lambda Connector
OpenAPI Lambda Connector
The OpenAPI Lambda Connector allows you to import already existing APIs specified by the Open API Spec into you Hasura DDN subgraphs
About
Version
Released
August 22, 2024
Last Updated
November 13, 2024
GitHub Repo

OpenAPI Lambda Connector

Docs ndc-hub License

The OpenAPI Lambda Connector allows you to import APIs that are documented in the OpenAPI/Swagger format into the Hasura Supergraph. The connector exposes REST API endpoints as Typescript functions, which can be exposed as GraphQL queries or mutations via the NodeJS Lambda Connector.

Functions that wrap GET requests are marked with a @readonly annotation, and are exposed as GraphQL Queries by the NodeJS Lambda Connector. All other request types are exposed as GraphQL Mutations.

This Connector implements the Data Connector Spec

Docs for the OpenAPI data connector:

Features

  • Convert Open API/swagger documentation into Typescript functions compatible with NodeJS Lambda Connector
  • Supported request types
Request TypeQueryPathBodyHeaders
GETNA
POST
DELETE
PUT
PATCH

Prerequisites

  1. Create a Hasura Cloud account
  2. Please ensure you have the DDN CLI and Docker installed
  3. Create a supergraph
  4. Create a subgraph

The steps below explain how to initialize and configure a connector on your local machine (typically for development purposes).You can learn how to deploy a connector to Hasura DDN — after it's been configured — here.

Using the OpenAPI Lambda connector

Check out the Hasura docs here to get started with the OpenAPI Lambda connector.

Saving User Changes

Please refer to Saving User Changes.

Known Limitations

Contributing

Check out our contributing guide for more details.

Changelog

Please refer to the changelog.

License

The Open API Lambda Connector is available under the Apache License 2.0.

2024 Edition

The GraphQL Handbook

A GraphQL Handbook for developers and architects to help plan your GraphQL adoption journey.
The GraphQL Handbook

Ship a rock-solid API on your data – in minutes!