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 + } + } + } + } +}