Write payload for DbSet.insertVariant(key, payload).
All columns from the matching variant branch are optional (so
auto-generated PKs and columns with DB defaults can be omitted), and the
discriminator field is excluded (it is set automatically from key).
// Only valid fields for the 'assigned' variant; type-checked at compile time: awaitdb.activities.insertVariant('assigned', { todoId:42, userId:7, assigneeId:9, });
Write payload for
DbSet.insertVariant(key, payload).All columns from the matching variant branch are optional (so auto-generated PKs and columns with DB defaults can be omitted), and the discriminator field is excluded (it is set automatically from
key).