cursor!() { /* proc-macro */ }Expand description
prax::cursor! — schema-aware shape macro returning a
<Model>WhereUniqueInput value for use as a cursor: argument to
the read macros.
The block must have exactly one entry whose key refers to an
@id or @unique column on the model.
ⓘ
let from = prax::cursor!(User, { id: 42 });
let _ = prax::find_many!(client.user, {
cursor: { id: 42 },
take: 10,
});