From a703a5cc4554a4f20d06ab18d056d289eab04b80 Mon Sep 17 00:00:00 2001 From: Nikola Bjelo Date: Wed, 7 Nov 2018 16:05:34 +0100 Subject: [PATCH] updating mutations --- client/src/GraphQL/Calls/getOptions.js | 6 +++--- client/src/GraphQL/Calls/hostedEvents.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/GraphQL/Calls/getOptions.js b/client/src/GraphQL/Calls/getOptions.js index cb9dfa700..979ab6d2b 100644 --- a/client/src/GraphQL/Calls/getOptions.js +++ b/client/src/GraphQL/Calls/getOptions.js @@ -20,8 +20,8 @@ const EVENTS_PLOTTERS = gql` `; const EVENTS_CREATEFORMULA = gql` - mutation Events_CreateEvent($event:events_EventInput!) { - events_CreateEvent(event: $event) { + mutation Events_CreateFormula($formula: events_FormulaInput!) { + events_CreateFormula(formula: $formula) { ...FormulaInfo } } @@ -29,7 +29,7 @@ const EVENTS_CREATEFORMULA = gql` `; const EVENTS_CREATEPLOTTER = gql` - mutation Events_CreatePlotter($plotter:events_PlotterInput!) { + mutation Events_CreatePlotter($plotter: events_PlotterInput!) { events_CreatePlotter(plotter: $plotter) { ...PlotterInfo } diff --git a/client/src/GraphQL/Calls/hostedEvents.js b/client/src/GraphQL/Calls/hostedEvents.js index 2fe4460be..563a9db2b 100644 --- a/client/src/GraphQL/Calls/hostedEvents.js +++ b/client/src/GraphQL/Calls/hostedEvents.js @@ -2,7 +2,7 @@ import gql from 'graphql-tag'; import { eventMinimalInfo } from '../Fragments'; const EVENTS_CREATEEVENT = gql` - mutation Events_CreateEvent($event:events_EventInput!) { + mutation Events_CreateEvent($event: events_EventInput!) { events_CreateEvent(event: $event) { ...EventMinimalInfo }