Interface Connector<TModel, TSelector, TOptions, TRawCollection>
		 
	 
	
		
			
			
				Type parameters
				
					- 
						TModel: VulcanDocument = any
- 
						TSelector = any
- 
						TOptions = any
- 
						TRawCollection = any
Methods
				
					
					_filter
					
						- _filter(input: FilterableInput<TModel>, context: any): Promise<{ filteredFields: any[]; options: TOptions; selector: TSelector }>
						- 
							
							
							ParametersReturns Promise<{ filteredFields: any[]; options: TOptions; selector: TSelector }>
count
					
						- count(selector?: TSelector): Promise<number>
						- 
							
							Parameters
								- 
									Optional selector: TSelector
 Returns Promise<number>
create
					
						- create(data: Partial<TModel>): Promise<TModel>
						- 
							
							ParametersReturns Promise<TModel>
delete
					
						- delete(selector: TSelector): Promise<true>
						- 
							
							ParametersReturns Promise<true>
find
					
						- find(selector?: TSelector, options?: TOptions): Promise<TModel[]>
						- 
							
							
							Parameters
								- 
									Optional selector: TSelector
- 
									Optional options: TOptions
 Returns Promise<TModel[]>
findOne
					
						- findOne(selector?: TSelector, options?: TOptions): Promise<null | TModel>
						- 
							
							Parameters
								- 
									Optional selector: TSelector
- 
									Optional options: TOptions
 Returns Promise<null | TModel>
findOneById
					
						- findOneById(_id: any): Promise<null | TModel>
						- 
							
							ParametersReturns Promise<null | TModel>
getRawCollection
					
						- getRawCollection(): TRawCollection
						- 
							
							Returns TRawCollection
update
					
						- update(selector: TSelector, modifier: Object, options?: { removeEmptyStrings: boolean }): Promise<TModel>
						- 
							
							Parameters
								- 
									selector: TSelector
- 
									modifier: Object
- 
									Optional options: { removeEmptyStrings: boolean }
										- 
											removeEmptyStrings: boolean
 
 Returns Promise<TModel>
 
		
	 
 
 
A database abstraction compatible with Vulcan