FastGQL auto generates delete<OBJECT_NAME>
delete mutations if the #generatemutations is set.
The following code will be added to the GraphQL schema.
The #generatemutations directive adds the above into our schema.
- filter argument passed to
deletePosts
mutation allows to filter what posts we want to delete.
- The cascade argument defines if we want to cascade our objects on deletion (postgres only)
Delete Objects
Example: Delete a post object and return the deleted posts in the response: