We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi. I would like to know if it'd be possible to return a promise when using the write function instead of having to pass a callback to it.
Instead of:
const ye = this.myModel.write(options, shapeStream, (err, file) => {})
where ye ends up being undefined since myModel.write does not return anything, I would like to do:
const ye = this.myModel.write(options, shapeStream); ye.then((file) => {}).catch((err) => {});
const ye = this.myModel.write(options, shapeStream);
ye.then((file) => {}).catch((err) => {});
Is this possible?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi. I would like to know if it'd be possible to return a promise when using the write function instead of having to pass a callback to it.
Instead of:
const ye = this.myModel.write(options, shapeStream, (err, file) => {})
where ye ends up being undefined since myModel.write does not return anything, I would like to do:
const ye = this.myModel.write(options, shapeStream);
ye.then((file) => {}).catch((err) => {});
Is this possible?
The text was updated successfully, but these errors were encountered: