mbdavid / LiteDB

LiteDB - A .NET NoSQL Document Store in a single data file
http://www.litedb.org
MIT License
8.35k stars 1.22k forks source link

[BUG] LiteDB Docs FileStorage section "fs.Find("$/photos/2014/");" not supported in v5 #2506

Open lanwah opened 2 weeks ago

lanwah commented 2 weeks ago

Version LiteDB version 5.0.20.0

Describe the bug LiteDb Docs FileStroage section.

// Find all files references in a "directory" var files = fs.Find("$/photos/2014/");

Not supported writing in v5. It is recommended to add different versions of writing instructions for the Find method

Expected behavior Supported writing for the Find method in different versions. we can write like this in v5:

fs.Find("_id LIKE @0", path + "%")

or

fs.Find("_id = @0", path);

or

fs.Find("filename = @0", filename)

Screenshots/Stacktrace image