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
Note for linux: host.docker.internal doesn't work on older versions of docker on linux. You can use `DGRAPH_URL=http://172.17.0.1:8080` instead
@@ -80,6 +82,10 @@ We are trying to make the environment match the environment you'd get from Servi
80
82
81
83
If you would like to add libraries, then use webpack --target=webworker to compile your script. We'll fill out these instructions later.
82
84
85
+
### Working with Typescript
86
+
87
+
You can import @slash-graph/lambda-types to get types for `addGraphQLResolver` and `addGraphQLMultiParentResolver`.
88
+
83
89
## Security
84
90
85
91
Currently, this uses node context to try and make sure that users aren't up to any fishy business. However, contexts aren't true security, and we should eventually switch to isolates. In the meanwhile, we will basically have kube kill this if it takes a lot of CPU for say 5 secs
@@ -88,4 +94,4 @@ Currently, this uses node context to try and make sure that users aren't up to a
88
94
89
95
Currently, the publishing of this isn't automated. In order to publish:
90
96
* Publish the types in slash-graphql-lambda-types if needed with (npm version minor; npm publish)
91
-
*Publish the dockerimage with docker build . -t dgraph/dgraph-lambda; docker push dgraph/dgraph-lambda
97
+
*The docker-image auto publishes, but pushing a tag will create a tagged version that is more stable
0 commit comments