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
delete(id: string): Promise<boolean> ERROR [ExceptionsHandler] This method requires a valid topology instance
delete(id: string): Promise<boolean>
The text was updated successfully, but these errors were encountered:
I have the exact same error, only when I use the delete method.
delete
Sorry, something went wrong.
import { GridFSBucket } from 'mongodb'; private readonly bucket: GridFSBucket; constructor(@InjectConnection() private readonly connection: Connection) { this.bucket = new GridFSBucket(this.connection.db, { bucketName: 'fs' }); } async delete(id: string) { await this.bucket.delete(new mongoose.Types.ObjectId(id)); }
No branches or pull requests
delete(id: string): Promise<boolean>
ERROR [ExceptionsHandler] This method requires a valid topology instance
The text was updated successfully, but these errors were encountered: