Skip to content

Commit 2d486f8

Browse files
committed
Fixing up the readme again
1 parent fb35134 commit 2d486f8

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

Readme.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,22 @@ type User {
4343
id: ID!
4444
firstName: String!
4545
lastName: String!
46-
# fullName: String @lambda
46+
fullName: String @lambda
4747
}
48+
4849
type Todo {
4950
id: ID!
5051
title: String
5152
}
52-
#type Query {
53-
# todoTitles: [String] @lambda
54-
#}
53+
54+
type Query {
55+
todoTitles: [String] @lambda
56+
}
5557
```
5658

5759
```bash
5860
# host.docker.internal may not work on old versions of docker
59-
docker run -it --rm -p 8686:8686 -v /path/to/script.js:/app/script.js -e DGRAPH_URL=http://host.docker.internal:8080 tdinkar/omega
61+
docker run -it --rm -p 8686:8686 -v /path/to/script.js:/app/script.js -e DGRAPH_URL=http://host.docker.internal:8080 dgraph/dgraph-lambda
6062
```
6163

6264
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
8082

8183
If you would like to add libraries, then use webpack --target=webworker to compile your script. We'll fill out these instructions later.
8284

85+
### Working with Typescript
86+
87+
You can import @slash-graph/lambda-types to get types for `addGraphQLResolver` and `addGraphQLMultiParentResolver`.
88+
8389
## Security
8490

8591
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
8894

8995
Currently, the publishing of this isn't automated. In order to publish:
9096
* Publish the types in slash-graphql-lambda-types if needed with (npm version minor; npm publish)
91-
* Publish the docker image 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

Comments
 (0)