Write payload for DbSet.ofVariant(key).insert(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.ofVariant('assigned').insert({ todoId:42, userId:7, assigneeId:9, });
Write payload for
DbSet.ofVariant(key).insert(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).