From 7fd7cb539533212e5397eef8c2f3f0761a0a8e0b Mon Sep 17 00:00:00 2001 From: Rob Dominguez Date: Tue, 28 May 2024 11:27:00 -0500 Subject: [PATCH] Hotfix: getting started inconsistencies --- docs/getting-started/1-create-a-project.mdx | 9 +++------ docs/getting-started/3-add-custom-business-logic.mdx | 8 ++++---- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/docs/getting-started/1-create-a-project.mdx b/docs/getting-started/1-create-a-project.mdx index c94a617c2..9ef206671 100644 --- a/docs/getting-started/1-create-a-project.mdx +++ b/docs/getting-started/1-create-a-project.mdx @@ -30,13 +30,10 @@ To start, we'll walk you through the steps to: Throughout this guide, you'll be introduced to new Hasura concepts, like builds, our new metadata structure, and more. - **If you've landed here from Hasura DDN after creating a project via the Console (our GUI), you can replace the project -name in the `hasura.yaml` at the root of the local project you're about to create with the name of the project you +name in the `hasura.yaml` at the root of the local project you're about to create with the name of the project you created on Hasura DDN. From there, you can follow the rest of the steps below!** - - :::tip What's about to happen? We'll create a **project** on Hasura DDN, which is fully defined in metadata files using a simple directory structure. @@ -295,12 +292,12 @@ query OrdersQuery { id status deliveryDate - users { + user { id name email } - products { + product { id name } diff --git a/docs/getting-started/3-add-custom-business-logic.mdx b/docs/getting-started/3-add-custom-business-logic.mdx index d20cccdd0..36b693c35 100644 --- a/docs/getting-started/3-add-custom-business-logic.mdx +++ b/docs/getting-started/3-add-custom-business-logic.mdx @@ -46,7 +46,7 @@ ddn dev ## Step 2: Navigate to the TypeScript connector -Inside of the `/app/ts_functions` directory we can find all the files the CLI generated, including +Inside of the `/app/ts_connector` directory we can find all the files the CLI generated, including `connector/functions.ts` which will contain our custom logic: ```bash @@ -56,9 +56,9 @@ Inside of the `/app/ts_functions` directory we can find all the files the CLI ge #highlight-end │   ├── package-lock.json │   ├── package.json -│   ├── ts_functions.build.hml +│   ├── ts_connector.build.hml │   └── tsconfig.json -└── ts_functions.hml +└── ts_connector.hml ``` If we open `functions.ts`, we'll see the following contents: @@ -149,7 +149,7 @@ with. Let's add the `pg` package so we can directly interact with our database. In an available terminal tab, run the following from the root of the project: ```bash -cd ./app/ts_functions/connector +cd ./app/ts_connector/connector ``` Then, let's install the `pg` package and its types: