create!() { /* proc-macro */ }Expand description
prax::create! — schema-aware DSL targeting create. Top-level
keys: data: (required), include xor select. Relation fields
inside data: accept nested-write operators (create, connect,
disconnect, delete, delete_many, update, update_many,
upsert, set, connect_or_create) — each lowers to a
NestedWriteOp chained onto the operation.
ⓘ
prax::create!(client.user, {
data: { email: "a@x.com", name: "Alice", age: 30 },
select: { id: true, email: true },
});