feathersjs-ecosystem / feathers-sync

Synchronize service events between Feathers application instances
MIT License
221 stars 41 forks source link

Error: The field 'strict' is not a valid collection option #119

Closed supermomme closed 4 years ago

supermomme commented 4 years ago

Steps to reproduce

I added the plugin like this: app.configure(sync({ uri: app.get('mongodb') })) Then I got this error: error: The field 'strict' is not a valid collection option. Options: { capped: true, autoIndexId: true, size: 5242880, strict: false } {"name":"MongoError","note":"the autoIndexId option is deprecated and will be removed in a future release","ok":0,"errmsg":"The field 'strict' is not a valid collection option. Options: { capped: true, autoIndexId: true, size: 5242880, strict: false }","code":72,"codeName":"InvalidOptions"}

Expected behavior

Don't throw that error

Actual behavior

Throwed an error

System configuration

feathers-sync versions: 1.1.2 @feathersjs/feathers versions: 3.3.1

NodeJS version: node:10.9.0-alpine (Docker Image)

Operating System: Uuntu 18.04 (But it runs in docker)