We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 21f6cd8 + a0273ae commit 38c7ca3Copy full SHA for 38c7ca3
doc/execution-model.md
@@ -51,14 +51,14 @@ value of the function is used as the new context value:
51
52
{% highlight clojure %}
53
(defresource foo
54
- :service-available? {:a [1]}
55
- :exists? (fn [ctx] #(assoc ctx :a [2]))
+ :service-available? {:entity [1]}
+ :exists? (fn [ctx] #(assoc ctx :entity [2]))
56
:handle-ok :entity)
57
{% endhighlight %}
58
59
Without the wrapping in a function the updated context after
60
-```exists?``` would be ````{:a [1 2]}```` whereas in this case we get
61
-````{:a [1]}````.
+```exists?``` would be ````{:entity [1 2]}```` whereas in this case we get
+````{:entity [2]}````.
62
63
## Decision functions
64
0 commit comments