From 1ada4e724fa2a83830f1ac8fdb3d7a295f03f377 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 20 Mar 2019 18:49:43 +0100 Subject: [PATCH] Adapting operation links for new versiion of the cockpit backend --- server/src/links/operations.js | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/server/src/links/operations.js b/server/src/links/operations.js index 476483d7f..678f49b38 100644 --- a/server/src/links/operations.js +++ b/server/src/links/operations.js @@ -6,9 +6,6 @@ export const linkSchemaDefs = extend type operations_GetClones { bot: teams_FinancialBeings } - extend type operations_Clone { - orders( state: cockpit_OrderStateEnum ): [cockpit_Order] - } extend type operations_Clone { signals( state: cockpit_SignalStateEnum ): [cockpit_Signal] } @@ -16,26 +13,13 @@ export const linkSchemaDefs = export const resolver = (teamsSchema, cockpitSchema) => ({ operations_Clone: { - orders: { - fragment: `fragment OrderFragment on operations_Clone{id}`, - resolve ({id: cloneId}, args, context, info) { - return info.mergeInfo.delegateToSchema({ - schema: cockpitSchema, - operation: 'query', - fieldName: 'cockpit_OrdersByClondeId', - args: { ...args, cloneId }, - context, - info - }) - } - }, signals: { fragment: `fragment SignalFragment on operations_Clone{id}`, resolve ({id: cloneId}, args, context, info) { return info.mergeInfo.delegateToSchema({ schema: cockpitSchema, operation: 'query', - fieldName: 'cockpit_SignalsByClondeId', + fieldName: 'cockpit_SignalsByCloneId', args: { ...args, cloneId }, context, info