Skip to content

Commit 0a6d51d

Browse files
author
emmanuel
committed
readme update
1 parent 31d4ed1 commit 0a6d51d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ var task = Fawn.Task();
318318
### Using the result of previous steps in subsequent steps
319319
You might want to use the result of a previous step in a subsequent step. You can do this using an object with the key "$ojFuture". Syntax: {$ojFuture: "indexOfStep.resultProperty1.property2.-----.propertyN"}. Here's how:
320320

321-
```
321+
```javascript
322322
task.save("Kids", {name: {full: "Brody Obi"}}) //result will be {_id: someMongoId, name: {full: "Brody Obi"}}
323323
.update("Parents", {_id: parentId}, {firstChild: {id: {$ojFuture: "0._id"} , fullName: {$ojFuture: "0.name.full"}})
324324
.run()

0 commit comments

Comments
 (0)