You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36-1Lines changed: 36 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
The NodeJS Lambda connector allows you to expose TypeScript functions as NDC functions/procedures for use in your Hasura DDN subgraphs.
4
4
5
-
# How to Use
5
+
##How to Use
6
6
First, ensure you have NodeJS v18+ installed. Then, create a directory into which you will create your functions using the `hasura-ndc-nodejs-lambda` Yeoman template.
7
7
8
8
```bash
@@ -14,3 +14,38 @@ npx yo hasura-ndc-nodejs-lambda
14
14
This creates a `functions.ts` file in which you will write your functions, and a `package.json` with the `ndc-lambda-sdk` installed into it.
15
15
16
16
The `package.config` has been created with `start` and `watch` scripts. These use the SDK to host your `functions.ts` file. You can start your connector with `npm start`, or if you'd like it to automatically restart as you change your code, use `npm run watch`.
17
+
18
+
## Deploying with `hasura3 connector create`
19
+
20
+
You will need:
21
+
22
+
*[Hasura v3 CLI](https://hasura.io/docs/3.0/cli/installation/) (with a logged-in session)
*Note: Even though you can use the "main" branch to deploy the latest connector features, see the [Hasura Connector Hub](https://hasura.io/connectors/nodejs-lambda) for verified release tags*
40
+
41
+
Monitor the deployment status by name - this will indicate in-progress, complete, or failed status:
42
+
43
+
> hasura3 connector status my-cool-connector:v1
44
+
45
+
List all your connectors with their deployed URLs:
0 commit comments