Skip to content

Delete rows inside relation in Adonis 5 #1341

Answered by thetutlage
dajpes asked this question in Help
Discussion options

You must be logged in to vote

Here's how you can access the query builder of a relationship and then just chain the delete method on it.

https://preview.adonisjs.com/guides/model-relations/introduction#access-to-the-direct-query-builder

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@dajpes
Comment options

Comment options

You must be logged in to vote
1 reply
@dajpes
Comment options

Answer selected by dajpes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants