Skip to content

Commit

Permalink
fix: DomainService collection query
Browse files Browse the repository at this point in the history
  • Loading branch information
loopingz committed Sep 7, 2023
1 parent ef6d18d commit 6f81d7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/services/domainservice.ts
Expand Up @@ -419,6 +419,8 @@ export class RESTDomainService<T extends RESTDomainServiceParameters = RESTDomai
}
if (args[0] !== 0) {
query = `__types CONTAINS "${model.getIdentifier()}"` + query;
} else if (query.startsWith(" AND ")) {
query = query.substring(5);
}
if (context.getHttpContext().getMethod() === "GET") {
context.getParameters().q = query;
Expand Down

0 comments on commit 6f81d7c

Please sign in to comment.