(no title)
no0dles | 4 years ago
frontend sql statement as a json object:
{
select: {
name: field(Project, 'name')
},
from: table(Project),
where: equal(field(Project, 'ownerUsername'), '<my-user-id>'),
}
and here a rule configured on the backend: const rules = [
allow(authorized(), {
select: {
name: field(Project, 'name'),
},
from: table(Project),
where: equal(field(Project, 'ownerUsername'), requestContext().userId),
})
],
Sadly documentation is quite poor for now, but you can check it out here https://github.com/no0dles/daitaEdit: code formatting
No comments yet.