yahoo / serialize-javascript

Serialize JavaScript to a superset of JSON that includes regular expressions and functions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cant serialize mongoose model object

RezaErfani67 opened this issue · comments

Please provide a repro for your problem.

i have a file with all model of mongoose collections...
in my application user can change the model...
add new collection...
delete a collection and so on...
so this file should be change....
but there is another problem....
i ise cluster in my app...
thus all core of cpu should know about all models and track og changing them...
for this i force to seialize this object and save to file or database or ....
i need to serialize it

This is the serialize-javascript project not related to the mongoose. You have to write a minimum example code can reproduce your problem of usage serialize-javascript library.

dear friend...
my problem not related to mongoose.please read again...
i have an object that i cant serialize it....
what is this object?
it is a mongoose model object

What object did you try to serialize?

look at the picture on first post...
on the chrome console...
DefaultFlow object

It's too difficult to confirm the problem from screenshot. Please write up a reproducible code.