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
When you pass a KueryNode object as a filter to a method of the saved object’s API the object is being mutated by the API. This can lead to errors if the same filter is used in coming requests that use the same filter. Example:
We do rewrite the filter's fields to convert from the SO attribute model to the underlying ES document fields.
When filter is passed as a string, we create the KueryNode internally, but when a real KueryNode is provided, the validation process mutates the input.
When you pass a
KueryNode
object as a filter to a method of the saved object’s API the object is being mutated by the API. This can lead to errors if the same filter is used in coming requests that use the same filter. Example:The filter will be
nodeBuilder.is('cases.status', 'open')
in the second call and will lead to error.Using
cloneDeep(options)
make it work.The text was updated successfully, but these errors were encountered: