feathers-ottoman
Version:
A Feathers service adapter for the Ottoman ODM
24 lines (18 loc) • 465 B
text/typescript
import { ServiceOptions } from '@feathersjs/adapter-commons';
import { SearchConsistency, ModelTypes } from 'ottoman';
interface OttomanOptions {
Model: ModelTypes;
ottoman: {
lean: boolean;
consistency: SearchConsistency;
}
}
type OttomanServiceOptions = OttomanOptions & Partial<ServiceOptions>;
type Filters = Record<string, any>;
type Methods = 'find' | 'default';
export {
OttomanOptions,
OttomanServiceOptions,
Filters,
Methods,
};