Skip to main content
Version: v3.x (DDN)

Add a Lambda Connector

Introduction

You can add a lambda connector just like any other data source.

Add a connector

Initialize a new connector in a project directory:
ddn connector init <your_name_for_the_connector> -i

When you add the hasura/nodejs connector, the CLI will generate a Node.js package with a functions.ts file. This file is the entrypoint for your connector.

Customization

You can customize which subgraph this connector is added to by changing your project's context or using flags. More information can be found in the CLI docs for the ddn connector init command.

Next steps

After adding a connector, learn how to add custom business logic written in your language of choice and expose it via your API.