6355557356
https://github.com/user-attachments/assets/3ad7a4f3-d08b-4a1c-b3c2-bb42ef9f3575 Real time POC. Next steps: - find out the correct API for subscription. Should be triggered directly in query hooks (useFindManyRecords, useLazy...) - improve query matching
16 lines
374 B
TypeScript
16 lines
374 B
TypeScript
import { Field, InputType } from '@nestjs/graphql';
|
|
|
|
import { DatabaseEventAction } from 'src/engine/api/graphql/graphql-query-runner/enums/database-event-action';
|
|
|
|
@InputType()
|
|
export class SubscriptionInput {
|
|
@Field()
|
|
id: string;
|
|
|
|
@Field()
|
|
query: string;
|
|
|
|
@Field(() => [DatabaseEventAction], { nullable: true })
|
|
selectedEventActions?: DatabaseEventAction[];
|
|
}
|