Skip to content

Commit 99bd96b

Browse files
author
Cache Hamm
committed
Document reasons for using a path-resolver
1 parent 21c6632 commit 99bd96b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/rules.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ engine.addRule(new Rule({
260260
)
261261
```
262262
263+
This feature may be useful in cases where the higher performance offered by simpler object traversal DSLs are preferable to the advanced expressions provided by `json-path`. It can also be useful for leveraging more complex DSLs ([jsonata](https://jsonata.org/), for example) that offer more advanced capabilities than `json-path`.
264+
263265
### Comparing facts
264266
265267
Sometimes it is necessary to compare facts against other facts. This can be accomplished by nesting the second fact within the `value` property. This second fact has access to the same `params` and `path` helpers as the primary fact.

0 commit comments

Comments
 (0)