File

projects/aoc-client/core/services/aoc-rest-local/aoc-rest-local.service.ts

Index

Methods

Methods

count
count(modelClass, where: AocFilterQuery, options?: AocRestOptions)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
where AocFilterQuery No
options AocRestOptions Yes
Returns : Promise<number>
delete
delete(modelClass, model: M)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
model M No
Returns : Promise<void>
find
find(modelClass, where: AocFilterQuery, options?: AocRestOptions)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
where AocFilterQuery No
options AocRestOptions Yes
Returns : Promise<M[]>
find$
find$(modelClass, where: AocFilterQuery, options?: AocRestOptions, clientOptions?: AocRestClientOptions)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
where AocFilterQuery No
options AocRestOptions Yes
clientOptions AocRestClientOptions Yes
Returns : Observable<M[]>
findAndCount
findAndCount(modelClass, where: AocFilterQuery, options?: AocRestOptions)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
where AocFilterQuery No
options AocRestOptions Yes
findAndCount$
findAndCount$(modelClass, where: AocFilterQuery, options?: AocRestOptions, clientOptions?: AocRestClientOptions)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
where AocFilterQuery No
options AocRestOptions Yes
clientOptions AocRestClientOptions Yes
findOne
findOne(modelClass, where: AocFilterQuery, options?: AocRestOptions)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
where AocFilterQuery No
options AocRestOptions Yes
Returns : Promise<M | null>
findOne$
findOne$(modelClass, where: AocFilterQuery, options?: AocRestOptions)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
where AocFilterQuery No
options AocRestOptions Yes
Returns : Observable<M | null>
nativeUpdate
nativeUpdate(modelClass, where: AocFilterQuery, data: any)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
where AocFilterQuery No
data any No
Returns : Promise<number[]>
offset
offset(modelClass, modelOrId: AocModelId | M, where: AocFilterQuery, options?: AocRestOptions)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
modelOrId AocModelId | M No
where AocFilterQuery No
options AocRestOptions Yes
persist
persist(modelClass, model: M, options?: AocRestOptions)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
model M No
options AocRestOptions Yes
Returns : Promise<M>
persistWithTask
persistWithTask(modelClass: literal type, model: M, options?: AocRestOptions)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass literal type No
model M No
options AocRestOptions Yes
Returns : Promise<M>
setLocalModels
setLocalModels(models: AocModel[])
Parameters :
Name Type Optional
models AocModel[] No
Returns : void

results matching ""

    No results matching ""