Where do I check the debugging results of adonis api query? #3821
-
I read the docs from here : https://docs.adonisjs.com/guides/database/debugging#pretty-print-queries And I try like this :
I try using the pretty print queries like that and I call the query. Then I check on the terminal and postman too. But I don't find the result Where do I check the debugging results of adonis api query? Please help. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can use What you've done is adding an event listner and it must be done on a preload file. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much. It's works |
Beta Was this translation helpful? Give feedback.
You can use
.toQuery
to debug a query !What you've done is adding an event listner and it must be done on a preload file.