From 0e1abad123b33e21a8b0a563f599b4762f937cdc Mon Sep 17 00:00:00 2001 From: Alina Beck Date: Mon, 29 Jul 2019 17:19:13 +0200 Subject: [PATCH] adjust social media types to fit new definition --- backend/src/schema/types/schema.gql | 2 +- backend/src/schema/types/type/User.gql | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/schema/types/schema.gql b/backend/src/schema/types/schema.gql index 492dd3966..82c02ab7e 100644 --- a/backend/src/schema/types/schema.gql +++ b/backend/src/schema/types/schema.gql @@ -134,5 +134,5 @@ type SharedInboxEndpoint { type SocialMedia { id: ID! url: String - ownedBy: [User]! @relation(name: "OWNED", direction: "IN") + ownedBy: [User]! @relation(name: "OWNED_BY", direction: "IN") } diff --git a/backend/src/schema/types/type/User.gql b/backend/src/schema/types/type/User.gql index 81bf3e782..75afa9cdf 100644 --- a/backend/src/schema/types/type/User.gql +++ b/backend/src/schema/types/type/User.gql @@ -17,7 +17,6 @@ type User { location: Location @cypher(statement: "MATCH (this)-[:IS_IN]->(l:Location) RETURN l") locationName: String about: String - socialMedia: [SocialMedia]! @relation(name: "OWNED", direction: "OUT") #createdAt: DateTime #updatedAt: DateTime