MCPcopy Create free account
hub / github.com/chainjet/platform / SearchableQueryArgsType

Function SearchableQueryArgsType

libs/common/src/base/base.resolver.ts:58–66  ·  view source on GitHub ↗
(DTOClass: Class<DTO>)

Source from the content-addressed store, hash-verified

56const getResolverToken = <DTO>(DTOClass: Class<DTO>): string => `${DTOClass.name}AutoResolver`
57
58export function SearchableQueryArgsType<DTO>(DTOClass: Class<DTO>): StaticQueryType<DTO, PagingStrategies.CURSOR> {
59 @ArgsType()
60 class QueryArgsTypeWithSearch extends QueryArgsType(DTOClass) {
61 @Field({ nullable: true })
62 search?: string
63 }
64
65 return QueryArgsTypeWithSearch
66}
67
68export const BaseResolver = <
69 DTO,

Callers 3

IntegrationQueryClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected