I need to save data of the user actually I can save the object but the Json is very weird with fields like this:
"age_range": {
"$t": 3,
"$v": {
"min": {
"$t": 16,
"$v": 21
}
}
}
I read maybe is because I need to transform to Object the user to save it in my database but I get this error when I use it
for example:
var obj=user.toObject();
user.toObject is not a function
maybe is not supported.
Someone knows how to solve this problem?
Thank you!