MCPcopy Index your code
hub / github.com/parse-community/parse-server / getIndexes

Function getIndexes

spec/MongoStorageAdapter.spec.js:735–742  ·  view source on GitHub ↗
(collectionName)

Source from the content-addressed store, hash-verified

733 });
734
735 async function getIndexes(collectionName) {
736 const adapter = Config.get(Parse.applicationId).database.adapter;
737 const collections = await adapter.database.listCollections({ name: collectionName }).toArray();
738 if (collections.length === 0) {
739 return [];
740 }
741 return await adapter.database.collection(collectionName).indexes();
742 }
743
744 it('should skip username index when createIndexUserUsername is false', async () => {
745 await reconfigureServer({

Callers 1

Calls 1

getMethod · 0.45

Tested by

no test coverage detected