jdesboeufs / connect-mongo

MongoDB session store for Express

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MIGRATION_V4

guyellis opened this issue · comments

During the migration to v4 I discovered that in the session collection that the session property was a string of JSON data in v3 but in v4 it is a JS object.

I had to blow away the session collection as part of my migration.

Not sure if that was something that I did wrong during the migration? If not, then perhaps that or notes to that effect should be added to the MIGRATION_V4.md doc?

Take a look on the serialize, unserialize and serialize options?

I did't changed those options during the upgrade from v3 to v4. Did the default change for them?

@guyellis The default for option stringify should be true even in V4. Did you set it to false?

stringify = true,

@mingchuno yes - that's exactly what I did - and I don't know why I did that. My apologies for taking up your time with this and thank you for clarifying and solving this.