nestjs-graphql-relay
Version:
@nestjs/graphql + graphql-relay + typeorm
18 lines (13 loc) • 436 B
text/typescript
import { Field, InputType, registerEnumType } from "@nestjs/graphql";
export enum OrderByDirection {
ASC = "ASC",
DESC = "DESC",
}
registerEnumType(OrderByDirection, { name: "OrderByDirection" });
()
export class OrderByInput {
(() => OrderByDirection, { nullable: true })
readonly createdAt?: OrderByDirection;
(() => OrderByDirection, { nullable: true })
readonly updatedAt?: OrderByDirection;
}