techfort / LokiJS

javascript embeddable / in-memory database
http:/techfort.github.io/LokiJS
MIT License
6.73k stars 482 forks source link

[Feature request] All methods that directly return documents should take the same options-object as ResultSet#data #844

Closed thw0rted closed 3 years ago

thw0rted commented 4 years ago

I had a similar problem to #681, #756, #684, etc. -- I wanted to load a document from one collection then save it in another. In those questions, I found out about myColl.chain().data({removeMeta: true}), but was surprised to find that I don't have the same control over the output of myColl.find(), myColl.where(), myColl.by(), etc.

It would be nice if each of those methods got a new argument that controls output using the same options, forceClone, removeMeta, and so on. Of course, I can just stick to chain-syntax for now, when I need to reuse the data.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

thw0rted commented 4 years ago

Still relevant, Stale-Bot seems a little aggressive...

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

thw0rted commented 3 years ago

Oh boy, has it been sixty days already?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.