From 423b0c763dc0b4d40b48a94dd154f657a830e214 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 6 Sep 2018 08:13:09 +0200 Subject: [PATCH] roleid eliminated from schema --- client/src/components/Footer.js | 4 ++-- client/src/queries/queries.js | 4 +++- server/schema/schema.js | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/client/src/components/Footer.js b/client/src/components/Footer.js index 98af36870..ec37e0fd0 100644 --- a/client/src/components/Footer.js +++ b/client/src/components/Footer.js @@ -37,8 +37,8 @@ const Footer = () => {
- © 2014 Copyright Text - Advanced Algos + © 2018 Copyright + Advanced Algos Ltd.
diff --git a/client/src/queries/queries.js b/client/src/queries/queries.js index 9a8021452..3d0a92fce 100644 --- a/client/src/queries/queries.js +++ b/client/src/queries/queries.js @@ -7,7 +7,9 @@ const getUsersQuery = gql` alias firstName lastName - roleId + role { + id + } } } ` diff --git a/server/schema/schema.js b/server/schema/schema.js index 38552a8b5..a1c7b5069 100644 --- a/server/schema/schema.js +++ b/server/schema/schema.js @@ -31,7 +31,6 @@ const UserType = new GraphQLObjectType({ isDeveloper: {type: GraphQLInt}, isTrader: {type: GraphQLInt}, isDataAnalyst: {type: GraphQLInt}, - roleId: {type: GraphQLString}, role: { type: RoleType, resolve(parent, args) {