From 7429924913cac1f5bccee252579b30b973d8dec6 Mon Sep 17 00:00:00 2001 From: leonnicolas Date: Tue, 8 Dec 2020 13:08:41 +0100 Subject: [PATCH] src/schema/* use Link type for documents --- src/schema/type-defs.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/schema/type-defs.ts b/src/schema/type-defs.ts index 535fb61..8c426df 100644 --- a/src/schema/type-defs.ts +++ b/src/schema/type-defs.ts @@ -35,6 +35,7 @@ export default gql` The kind of currency depends on the database. """ scalar Money + scalar Link "The CargoBike type is central to the graph. You could call it the root." type CargoBike { @@ -667,7 +668,7 @@ export default gql` """ Path to documents """ - documents: [String!]! + documents: [Link!]! remark: String isLocked: Boolean! isLockedByMe: Boolean! @@ -686,7 +687,7 @@ export default gql` """ Path to documents """ - documents: [String] + documents: [Link] remark: String } @@ -701,7 +702,7 @@ export default gql` """ Path to documents """ - documents: [String] + documents: [Link] remark: String keepLock: Boolean }