We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79084c8 commit 50081c6Copy full SHA for 50081c6
src/operations/indexes.ts
@@ -249,7 +249,7 @@ export class CreateIndexesOperation extends CommandOperation<string[]> {
249
// Ensure the key is a Map to preserve index key ordering
250
const key =
251
userIndex.key instanceof Map ? userIndex.key : new Map(Object.entries(userIndex.key));
252
- const name = userIndex.name != null ? userIndex.name : Array.from(key).flat().join('_');
+ const name = userIndex.name ?? Array.from(key).flat().join('_');
253
const validIndexOptions = resolveIndexDescription(userIndex);
254
return {
255
...validIndexOptions,
0 commit comments