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
+92-1Lines changed: 92 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,4 +30,95 @@ Create a new supergraph:
30
30
31
31
Start a watch session, additionally split of a new terminal to continue running commands from.
32
32
33
-
```HASURA_DDN_PAT=$(ddn auth print-pat) docker compose up --build --watch```
33
+
```HASURA_DDN_PAT=$(ddn auth print-pat) docker compose up --build --watch```
34
+
35
+
In the new terminal, perform a local build:
36
+
37
+
```ddn supergraph build local --output-dir engine```
38
+
39
+
Initialize a subgraph:
40
+
41
+
```
42
+
ddn subgraph init python \
43
+
--dir python \
44
+
--target-supergraph supergraph.local.yaml \
45
+
--target-supergraph supergraph.cloud.yaml
46
+
```
47
+
48
+
Initialize a Python connector:
49
+
50
+
```
51
+
ddn connector init python \
52
+
--subgraph python/subgraph.yaml \
53
+
--hub-connector hasura/python \
54
+
--configure-port 8085 \
55
+
--add-to-compose-file compose.yaml
56
+
```
57
+
58
+
In the `.env.local` you will need to remove the `HASURA_CONNECTOR_PORT` variable which is set to `8085`. This is because the connector will run on that port but the docker-mapping is set to map 8085 -> 8080.
Now you should be able to write your code in the `functions.py` file, and each time you make changes and save the connector should automatically restart inside the watch session, you'll then need to track those changes and push them to engine.
0 commit comments