serialize-javascript icon indicating copy to clipboard operation
serialize-javascript copied to clipboard

cant serialize mongoose model object

Open RezaErfani67 opened this issue 5 years ago • 7 comments

image

RezaErfani67 avatar Aug 24 '19 12:08 RezaErfani67

Please provide a repro for your problem.

okuryu avatar Aug 27 '19 12:08 okuryu

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

RezaErfani67 avatar Aug 27 '19 13:08 RezaErfani67

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.

okuryu avatar Aug 27 '19 14:08 okuryu

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

RezaErfani67 avatar Aug 27 '19 14:08 RezaErfani67

What object did you try to serialize?

okuryu avatar Aug 27 '19 23:08 okuryu

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

RezaErfani67 avatar Aug 28 '19 02:08 RezaErfani67

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

okuryu avatar Aug 28 '19 04:08 okuryu