File

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

Index

Methods

Constructor

constructor(httpClient: HttpClient, aocIoService: AocIoService, aocConfig: AocConfig, aocModelManager: AocModelManager)
Parameters :
Name Type Optional
httpClient HttpClient No
aocIoService AocIoService No
aocConfig AocConfig No
aocModelManager AocModelManager No

Methods

count
count(modelClass, where: AocFilterQuery<M>, options?: AocRestOptions<M>)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
where AocFilterQuery<M> No
options AocRestOptions<M> Yes
Returns : Promise<number>
count$
count$(modelClass, where: AocFilterQuery<M>, options?: AocRestOptions<M>)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
where AocFilterQuery<M> No
options AocRestOptions<M> Yes
Returns : Observable<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<M>, options?: AocRestOptions<M>)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
where AocFilterQuery<M> No
options AocRestOptions<M> Yes
Returns : Promise<M[]>
find$
find$(modelClass, where: AocFilterQuery<M>, options?: AocRestOptions<M>, clientOptions?: AocRestClientOptions)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
where AocFilterQuery<M> No
options AocRestOptions<M> Yes
clientOptions AocRestClientOptions Yes
Returns : Observable<M[]>
findAndCount
findAndCount(modelClass, where: AocFilterQuery<M>, options?: AocRestOptions<M>)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
where AocFilterQuery<M> No
options AocRestOptions<M> Yes
findAndCount$
findAndCount$(modelClass, where: AocFilterQuery<M>, options?: AocRestOptions<M>, clientOptions?: AocRestClientOptions)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
where AocFilterQuery<M> No
options AocRestOptions<M> Yes
clientOptions AocRestClientOptions Yes
findOne
findOne(modelClass, where: AocFilterQuery<M>, options?: AocRestOptions<M>)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
where AocFilterQuery<M> No
options AocRestOptions<M> Yes
Returns : Promise<M>
findOne$
findOne$(modelClass, where: AocFilterQuery<M>, options?: AocRestOptions<M>, clientOptions?: AocRestClientOptions)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
where AocFilterQuery<M> No
options AocRestOptions<M> Yes
clientOptions AocRestClientOptions Yes
Returns : Observable<M>
nativeUpdate
nativeUpdate(modelClass, where: AocFilterQuery<M>, data: AocPartial<M>)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
where AocFilterQuery<M> No
data AocPartial<M> No
Returns : Promise<number[]>
offset
offset(modelClass, modelOrId: M | AocModelId, where: AocFilterQuery<M>, options?: AocRestOptions<M>)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
modelOrId M | AocModelId No
where AocFilterQuery<M> No
options AocRestOptions<M> Yes
persist
persist(modelClass, model: M, options?: AocRestOptions<M>)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass No
model M No
options AocRestOptions<M> Yes
Returns : Promise<M>
Async persistWithTask
persistWithTask(modelClass: literal type, model: M, options?: AocRestOptions<M>)
Type parameters :
  • M
Parameters :
Name Type Optional
modelClass literal type No
model M No
options AocRestOptions<M> Yes
Returns : Promise<M>

results matching ""

    No results matching ""