scaphold-io / scaphold-issues

Post issues that you find on Scaphold here. Post anything about the platform, docs, boilerplates, etc... Happy Scapholding!
3 stars 0 forks source link

Pre-ops are sent when write will fail uniqueness constraint #13

Open brandonmp opened 7 years ago

brandonmp commented 7 years ago

To recreate, index a type on some field, add a pre-operation Logic to that type's create, then try to create a duplicate.

the end point receives the payload and the write is subsequently rejected

Most use cases can probably design around this by using post-op logic, but i think that, since auth is checked prior to firing pre-operation logic, uniqueness constraints ought to be as well