Open tjconcept opened 9 years ago
This will fit 99% cases with a simpler syntax.
Consider supporting simply an array or a string for the index.
// now { keys: { completed: 1 } }, { keys: { lock: 1 } }, // as array { keys: [ 'completed' ] }, { keys: [ 'lock' ] }, // as string { key: 'completed' }, { key: 'lock' }, // as string only 'completed', 'lock',
This will fit 99% cases with a simpler syntax.
Consider supporting simply an array or a string for the index.