From 96ba04d1d17317b144e128518db9e44fb541aba4 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Thu, 6 May 2021 23:19:04 +0200 Subject: [PATCH] Add apply snapshot mutation --- .../gql/mutations/snapshots/applySnapshot.gql | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 client/src/graphql/gql/mutations/snapshots/applySnapshot.gql diff --git a/client/src/graphql/gql/mutations/snapshots/applySnapshot.gql b/client/src/graphql/gql/mutations/snapshots/applySnapshot.gql new file mode 100644 index 00000000..e0887d30 --- /dev/null +++ b/client/src/graphql/gql/mutations/snapshots/applySnapshot.gql @@ -0,0 +1,28 @@ +#import "gql/fragments/objectiveGroupParts.gql" +#import "gql/fragments/objectiveParts.gql" +#import "gql/fragments/contentBlockInterfaceParts.gql" +#import "gql/fragments/contentBlockParts.gql" +#import "gql/fragments/moduleParts.gql" +#import "gql/fragments/chapterParts.gql" + +mutation ApplySnapshot($input: ApplySnapshotInput!) { + applySnapshot(input: $input) { + success + module { + ...ModuleParts + objectiveGroups { + ...ObjectiveGroupParts + objectives { + ...ObjectiveParts + } + } + chapters { + ...ChapterParts + contentBlocks { + ...ContentBlockInterfaceParts + ...ContentBlockParts + } + } + } + } +}