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 17469d3 commit 872a2e7Copy full SHA for 872a2e7
test/document.test.js
@@ -14307,18 +14307,15 @@ describe('document', function() {
14307
Discriminator.discriminator('type1', subschema1);
14308
Discriminator.discriminator('type2', subschema2);
14309
14310
- const type1Key = 'type1';
14311
- const type2Key = 'type2';
14312
-
14313
const doc = await Discriminator.create({
14314
- key: type1Key,
+ key: 'type1',
14315
field1: 'test value'
14316
});
14317
14318
await Discriminator.updateOne(
14319
{ _id: doc._id },
14320
{
14321
- key: type2Key,
+ key: 'type2',
14322
field2: 'test2'
14323
},
14324
{ overwriteDiscriminatorKey: true }
0 commit comments