Skip to content

Commit 9978bf2

Browse files
committed
Incorporate feedback from Anand
1 parent 3db6595 commit 9978bf2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,14 @@ txn.do_request(request)
300300

301301
### Running an Upsert: Query + Mutation
302302

303-
The `txn.do_request` function allows you to use upsert blocks consisting of one
304-
query block and one mutation block. Query variables can be defined and can then
305-
be used in the mutation.
303+
The `txn.do_request` function allows you to use upsert blocks. An upsert block
304+
contains one query block and one or more mutation blocks, so it lets you perform
305+
queries and mutations in a single request. Variables defined in the query block
306+
can be used in the mutation blocks using the `uid` and `val` functions
307+
implemented by DQL.
306308

307309
To learn more about upsert blocks, see the
308-
[Upsert Block docs](https://dgraph.io/docs/mutations/upsert-block/).
310+
[Upsert Block documentation](https://dgraph.io/docs/mutations/upsert-block/).
309311

310312
```python
311313
query = """{

0 commit comments

Comments
 (0)