πFile GridFS
The module that handles the file system in the database (MongoDB).
Imports
import { FileGridfsService } from 'niro-health';import { FileGridfsModule } from 'niro-health';import type { IFileGridfsService } from 'niro-health';Environment Variables
name
description
MONGODB_GRIDFS_NAME=project_development_gridfs
MONGODB_NAME=project_developmentMethod of Use
import { Module } from '@nestjs/common';
import {
FileGridfsService,
ConfigurationService,
ValidatorRegexpService,
StringExService,
MongoDBService,
DebugService,
} from 'niro-health';
import { AppController } from './app.controller';
import { AppService } from './app.service';
@Module({
controllers: [AppController],
providers: [
AppService,
{
provide: 'IFileGridfsService',
useClass: FileGridfsService,
},
{
provide: 'IConfigurationService',
useClass: ConfigurationService,
},
{
provide: 'IValidatorRegexpService',
useClass: ValidatorRegexpService,
},
{
provide: 'IStringExService',
useClass: StringExService,
},
{
provide: 'IMongoDBService',
useClass: MongoDBService,
},
{
provide: 'IDebugService',
useClass: DebugService,
},
],
})
export class AppModule {}With dependencies
Interface
Service
Properties
Property
Scope
Description
Methods
Method
Scope
Description
Last updated