Skip to content

How can i serialize a .paginate() without @column({serializeas.. #1592

Answered by fieldyn
fieldyn asked this question in Help
Discussion options

You must be logged in to vote

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 😄 )

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fieldyn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant