mbdavid / LiteDB

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

[QUESTION] list indexes on a collection #2347

Open OneCyrus opened 1 year ago

OneCyrus commented 1 year ago

how can I query the current indexes on a collection with v5? It looks like the function was removed and I couldn't find a replacement. Is this really missing in v5?

v4 had the following in the LiteCollection method:

        /// <summary>
        /// Returns all indexes information
        /// </summary>
        public IEnumerable<IndexInfo> GetIndexes()
        {
            return _engine.Value.GetIndexes(_name);
        }