(collectionName)
| 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({ |
no test coverage detected