From 23fde238880fc80de61bc2f40ee9107242272ddd Mon Sep 17 00:00:00 2001 From: Matias Date: Mon, 1 Jul 2019 16:34:11 -0300 Subject: [PATCH] Adding Clone Id --- src/models/ecosystem.js | 4 ++++ src/schema/types/Bot.js | 1 + src/schema/types/input/Bot.js | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/models/ecosystem.js b/src/models/ecosystem.js index 1e6a2b9d8..bcaf36a46 100644 --- a/src/models/ecosystem.js +++ b/src/models/ecosystem.js @@ -58,6 +58,10 @@ const ecosystemSchema = new Schema({ type: String, required: false }, + cloneId: { + type: String, + required: false + }, products: [{ codeName: { type: String, diff --git a/src/schema/types/Bot.js b/src/schema/types/Bot.js index 9ce0405ab..347587f02 100644 --- a/src/schema/types/Bot.js +++ b/src/schema/types/Bot.js @@ -15,6 +15,7 @@ const BotType = new GraphQLObjectType({ profilePicture: { type: GraphQLString }, repo: { type: GraphQLString }, configFile: { type: GraphQLString }, + cloneId: { type: GraphQLString }, products: { type: new GraphQLList(ProductType), resolve(parent) { diff --git a/src/schema/types/input/Bot.js b/src/schema/types/input/Bot.js index dfbadf5fb..5b1ed1096 100644 --- a/src/schema/types/input/Bot.js +++ b/src/schema/types/input/Bot.js @@ -11,7 +11,8 @@ const Type = new GraphQLInputObjectType({ codeName: { type: new GraphQLNonNull(GraphQLString) }, displayName: { type: new GraphQLNonNull(GraphQLString) }, repo: { type: GraphQLString }, - configFile: { type: GraphQLString } + configFile: { type: GraphQLString }, + cloneId: { type: GraphQLString } }), });