added graphql entegration and tested tanstack query
This commit is contained in:
17
backend/src/dto/list.input.ts
Normal file
17
backend/src/dto/list.input.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { GraphQLJSONObject } from 'graphql-type-json';
|
||||
import { Field, Int, InputType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class ListArguments {
|
||||
@Field(() => GraphQLJSONObject, { nullable: true })
|
||||
filters?: any;
|
||||
|
||||
@Field(() => GraphQLJSONObject, { nullable: true })
|
||||
sort?: any;
|
||||
|
||||
@Field(() => Int, { defaultValue: 0 })
|
||||
skip: number;
|
||||
|
||||
@Field(() => Int, { defaultValue: 10 })
|
||||
limit: number;
|
||||
}
|
||||
Reference in New Issue
Block a user