Open stemil23 opened 4 weeks ago
When testing with two (or more) users with each having created ToDo items the dashboard errors. I believe the schema lines 40, 41 are the cause.
access policy everyone_insert_only allow insert;
As when "select" is added to line 41 the defect is eliminated.
access policy everyone_insert_only allow insert, select;
It seem that the Select Query on dashboard/page is the cause of this defect as removing "created by" (lines 17-20) eliminates the error:
const items = await client.query<Props["items"][number]>(` select Item { id, name, created, updated, created_by: { name, email } }; `);
When testing with two (or more) users with each having created ToDo items the dashboard errors. I believe the schema lines 40, 41 are the cause.
As when "select" is added to line 41 the defect is eliminated.
It seem that the Select Query on dashboard/page is the cause of this defect as removing "created by" (lines 17-20) eliminates the error: