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 I try to use the FIND and REMOVE method using as input an existing criteria I get this error:
Error: Object is not a document stored in the collection
Searching in internet (techfort/LokiJS#544 and techfort/LokiJS#532) I've found that I don't have the attribute $loki in the input of the remove function, in the findandremove section:
As result of the sentence message.payload = coll.find(input); I have this: [{"dato1":7}]
and the following sentence coll.chain().find(input).remove(); fails with the mentioned error
In the database what I have is this:
"data":[{"dato1":7}]
The text was updated successfully, but these errors were encountered:
In the part when the nd.input is not true, the message.payload is assigned directly to the result object from the insert
Later, there are these 2 deletes:
This has sense in order to avoid showing the meta and $loki attributes outside, but since the operation is not over a copy of the insert result, the delete is done in the ouutput object and also over the the result of the insert, so in the database are lost both attributes
I'm going to prepare a pull request with my proposal for fixing this
Hi,
when I try to use the FIND and REMOVE method using as input an existing criteria I get this error:
Error: Object is not a document stored in the collection
Searching in internet (techfort/LokiJS#544 and techfort/LokiJS#532) I've found that I don't have the attribute $loki in the input of the remove function, in the findandremove section:
As result of the sentence
message.payload = coll.find(input);
I have this:[{"dato1":7}]
and the following sentence
coll.chain().find(input).remove();
fails with the mentioned errorIn the database what I have is this:
"data":[{"dato1":7}]
The text was updated successfully, but these errors were encountered: