Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Does not support .then functions #146

@jelordreygulle

Description

@jelordreygulle

I wanted to use promise in querying file using grid fs .

works

 gfs.findOne({ _id: '54da7b013706c1e7ab25f9fa'}, function (err, file) {
    console.log(file);
  });

does not work using promise

 gfs.findOne({ _id: '54da7b013706c1e7ab25f9fa'}).then(function (file) {
        console.log(file);
      }).catch(function (err) {

    })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions