-
Hi, i'm having this error when doing the model.map(x=> x.serialize({fields: {omit:[...
it works fine when i don't use the ".paginate()" in the .query() is there any way to serialize (select what to show or omit) a SimplePaginator without affecting the model? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
ok, what i did was to select the fields i want in the query (.query() .select(['field1', 'field2'...]) and for relationship the same (as second paramenter in the .preload, typescript helps a lot 😄 ) |
Beta Was this translation helpful? Give feedback.
ok, what i did was to select the fields i want in the query (.query() .select(['field1', 'field2'...]) and for relationship the same (as second paramenter in the .preload, typescript helps a lot 😄 )