From e011d0a803c8af44dfd9aa06694862cf6e44d478 Mon Sep 17 00:00:00 2001 From: ogerly Date: Wed, 24 Nov 2021 11:09:13 +0100 Subject: [PATCH] Implemented the arguments for graphql. --- .../src/graphql/arg/CreatePendingCreationArgs.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 backend/src/graphql/arg/CreatePendingCreationArgs.ts diff --git a/backend/src/graphql/arg/CreatePendingCreationArgs.ts b/backend/src/graphql/arg/CreatePendingCreationArgs.ts new file mode 100644 index 000000000..89b1e8c26 --- /dev/null +++ b/backend/src/graphql/arg/CreatePendingCreationArgs.ts @@ -0,0 +1,16 @@ +import { ArgsType, Field } from 'type-graphql' + +@ArgsType() +export default class CreatePendingCreationArgs { + @Field(() => String) + email: string + + @Field(() => Number) + amount: number + + @Field(() => String) + note: string + + @Field(() => Date) + creationDate: Date +}