Replies: 1 comment 1 reply
-
Have you tried setting See: https://preview.adonisjs.com/guides/models/serializing-models#hiding-properties |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Here is my Product model
When I do await Product.all(), I get an untidy looking array like so:
[{"id":1,"name":"Apple Mac Pro Stand","price":999,"created_datetime":"2020-10-09T07:43:59.000Z","updated_datetime":null},{"id":2,"name":"Apple Macbook Pro 2019","price":1999,"created_datetime":"2020-10-09T07:43:59.000Z","updated_datetime":null}]
Is there a way to neatly render it?
Beta Was this translation helpful? Give feedback.
All reactions