Constructors
constructor
Type parameters
Parameters
Methods
create
- create(attributes: any): Promise<IEntry<ID>>
Parameters
Returns Promise<IEntry<ID>>
delete
- delete(entry: any): Promise<boolean>
Parameters
Returns Promise<boolean>
find
- find(id: string | number): Promise<IEntry<ID>>
Parameters
Returns Promise<IEntry<ID>>
findAllWhere
- findAllWhere(field: string, value: any): Promise<EntryCollection<string | number>>
findBy
- findBy(field: string, value: any): Promise<IEntry<ID>>
Parameters
Returns Promise<IEntry<ID>>
newInstance
- newInstance(attributes: any): IEntry<ID>
save
- save(entry: Entry<string | number>): Promise<boolean>
Parameters
entry: Entry<string | number>
Returns Promise<boolean>
Create a new repository instance.