E40C getting error collection.find(...).sort(...).limit(...).nextObject is not a function · Issue #110 · feathersjs/feathers-sync · GitHub
[go: up one dir, main page]

Skip to content

getting error collection.find(...).sort(...).limit(...).nextObject is not a function #110

@adambezecny

Description

@adambezecny

we are using mongodb package 3.1.0 in order to connect to our mongo instance. When trying to inittialize feathers-sync like this:

feathersjsApp.configure(sync.mongodb({
  db: dbHandle,
  collection: 'feathers_events'
}))

I am getting error:

TypeError: collection.find(...).sort(...).limit(...).nextObject is not a function
at Channel.onCollection (...\node_modules\mubsub\lib\channel.js:204:14)

After quick research it seems nextObject method is not supported any more:

https://github.com/mongodb/node-mongodb-native/blob/master/CHANGES_3.0.0.md#api-changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0