Shape accepted by DbSet.save(graph) — a partial of the entity row
plus optional nested relation values:
belongsTo / hasOne relations accept a single nested object.
hasMany / belongsToMany relations accept an array of nested objects.
Each nested object is itself a SaveGraph of the foreign entity,
so belongsToMany can pass { id } to attach an existing row, or a
full nested graph to create a new row and link it.
Shape accepted by
DbSet.save(graph)— a partial of the entity row plus optional nested relation values:belongsTo/hasOnerelations accept a single nested object.hasMany/belongsToManyrelations accept an array of nested objects.Each nested object is itself a SaveGraph of the foreign entity, so
belongsToManycan pass{ id }to attach an existing row, or a full nested graph to create a new row and link it.