You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently nools throws an exception if the from clause references an key which does not exist on an object.
I think it would be much more useful if nools simply considers the check condition as false instead of throwing an error.
This could be useful in situation where the object being checked changes structure.
The workaround I use for this situation is to check that the key exists in a condition before the check with the from clause.
Eg:
Ideal scenario : Right now this throws an error if property does not exist
* Added support for js expression in the `from` node addressing issue [noolsjs#86](noolsjs#86)
* Enhanced `JoinReferenceNode` performance in the default assert case where there are no `references` to left or right context.
* Added ability to use `or` and `not` in tandem to check for the non-existence of multiple facts. [noolsjs#85](noolsjs#85)
* Fixed issue with `from` node where an undefined property would be tested. [noolsjs#89](noolsjs#89)
* You can now define a custom resolution strategy.
* Compiling nools files now supports the from modifier.
* Documentation updates
* Updates about from node support with js values.
* New documentation about using `or` and `not` constratints together.
* Updated `or` documentation to include a three constraint example.
Currently nools throws an exception if the from clause references an key which does not exist on an object.
I think it would be much more useful if nools simply considers the check condition as false instead of throwing an error.
This could be useful in situation where the object being checked changes structure.
The workaround I use for this situation is to check that the key exists in a condition before the check with the from clause.
Eg:
Ideal scenario : Right now this throws an error if property does not exist
Workaround
The text was updated successfully, but these errors were encountered: