From bba78c5688a54ec573e4bffbb14761a489bb493f Mon Sep 17 00:00:00 2001 From: leonnicolas Date: Thu, 19 Nov 2020 15:25:33 +0100 Subject: [PATCH] schema: added scalar type for project allowance --- src/schema/type-defs.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/schema/type-defs.ts b/src/schema/type-defs.ts index 9bd7ad0..1a0267e 100644 --- a/src/schema/type-defs.ts +++ b/src/schema/type-defs.ts @@ -25,7 +25,14 @@ export default gql` scalar Date "only time hh-mm-ss" scalar Time - + """ + is of american format [-]$[0-9]+.[0-9][0-9] + commas every three digits and . for decimals with 2 digits after the . + There can be a leading -. + There is a currency signe at the first position or second position if - is set. + The kind of currency depends on the database. + """ + scalar Money "The CargoBike type is central to the graph. You could call it the root." type CargoBike { id: ID! @@ -171,7 +178,7 @@ export default gql` There is a currency signe at the first position or second position if - is set. The kind of currency depends on the database. """ - projectAllowance: String + projectAllowance: Money notes: String } @@ -197,7 +204,7 @@ export default gql` You can pass a currency signe at the first position or second position of + or - is set. The kind of currency depends on the database. """ - projectAllowance: String + projectAllowance: Money notes: String } @@ -223,7 +230,7 @@ export default gql` You can pass a currency signe at the first position or second position of + or - is set. The kind of currency depends on the database. """ - projectAllowance: String + projectAllowance: Money notes: String }