We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43a0c3a commit c231cb7Copy full SHA for c231cb7
1 file changed
packages/rest-crud/src/crud-rest.controller.ts
@@ -164,7 +164,7 @@ export function defineCrudRestController<
164
@param.filter(modelCtor)
165
filter?: Filter<T>,
166
): Promise<(T & Relations)[]> {
167
- return this.repository.find(filter);
+ return this.repository.find(filter, options);
168
}
169
170
@get('/{id}', {
@@ -190,7 +190,7 @@ export function defineCrudRestController<
190
@param.where(modelCtor)
191
where?: Where<T>,
192
): Promise<Count> {
193
- return this.repository.count(where);
+ return this.repository.count(where, options);
194
195
196
@@ -234,6 +234,7 @@ export function defineCrudRestController<
234
// with no explicit type-casts required
235
data as DataObject<T>,
236
where,
237
+ options,
238
);
239
240
0 commit comments