Skip to content

toArray() without mapping options ? #183

Answered by rubenvanassche
Nir-An asked this question in Q&A
Discussion options

You must be logged in to vote

Transforming != mapping properties. Transformation is about transforming complex types into more basic types it has nothing to do with mapping property names.

Maybe we cannot update the transform method with a property mapPropertyNames which is default true, then it can be disabled using the transform method when required. I would accept a PR implementing such feature! The toArray method would keep mapping property names by default, but if required you can then use the transform method with a flag.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Nir-An
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants