Update schema

This commit is contained in:
Ramon Wenger 2021-04-29 15:34:43 +02:00
parent ead7879787
commit e78f130563
1 changed files with 20 additions and 4 deletions

View File

@ -151,6 +151,17 @@ type AnswerNodeEdge {
cursor: String! cursor: String!
} }
input ApplySnapshotInput {
snapshot: ID!
selectedClass: ID!
clientMutationId: String
}
type ApplySnapshotPayload {
success: Boolean
clientMutationId: String
}
input AssignmentInput { input AssignmentInput {
id: ID! id: ID!
answer: String! answer: String!
@ -208,10 +219,11 @@ type ChapterBookmarkNodeEdge {
} }
interface ChapterInterface { interface ChapterInterface {
id: ID!
contentBlocks(offset: Int, before: String, after: String, first: Int, last: Int, slug: String, title: String): ContentBlockNodeConnection contentBlocks(offset: Int, before: String, after: String, first: Int, last: Int, slug: String, title: String): ContentBlockNodeConnection
} }
type ChapterNode implements Node & ChapterInterface { type ChapterNode implements ChapterInterface {
title: String! title: String!
slug: String! slug: String!
description: String! description: String!
@ -334,7 +346,7 @@ type CreateSchoolClassPayload {
} }
input CreateSnapshotInput { input CreateSnapshotInput {
module: ID! module: String!
selectedClass: ID! selectedClass: ID!
clientMutationId: String clientMutationId: String
} }
@ -407,6 +419,7 @@ type CustomMutation {
updateChapterVisibility(input: UpdateChapterVisibilityInput!): UpdateChapterVisibilityPayload updateChapterVisibility(input: UpdateChapterVisibilityInput!): UpdateChapterVisibilityPayload
syncModuleVisibility(input: SyncModuleVisibilityInput!): SyncModuleVisibilityPayload syncModuleVisibility(input: SyncModuleVisibilityInput!): SyncModuleVisibilityPayload
createSnapshot(input: CreateSnapshotInput!): CreateSnapshotPayload createSnapshot(input: CreateSnapshotInput!): CreateSnapshotPayload
applySnapshot(input: ApplySnapshotInput!): ApplySnapshotPayload
_debug: DjangoDebug _debug: DjangoDebug
} }
@ -623,10 +636,11 @@ type ModuleEdge {
} }
interface ModuleInterface { interface ModuleInterface {
id: ID!
pk: Int pk: Int
} }
type ModuleNode implements Node & ModuleInterface { type ModuleNode implements ModuleInterface {
title: String! title: String!
slug: String! slug: String!
metaTitle: String! metaTitle: String!
@ -645,6 +659,7 @@ type ModuleNode implements Node & ModuleInterface {
myAnswers(offset: Int, before: String, after: String, first: Int, last: Int): AnswerNodeConnection myAnswers(offset: Int, before: String, after: String, first: Int, last: Int): AnswerNodeConnection
myContentBookmarks(offset: Int, before: String, after: String, first: Int, last: Int): ContentBlockBookmarkNodeConnection myContentBookmarks(offset: Int, before: String, after: String, first: Int, last: Int): ContentBlockBookmarkNodeConnection
myChapterBookmarks(offset: Int, before: String, after: String, first: Int, last: Int): ChapterBookmarkNodeConnection myChapterBookmarks(offset: Int, before: String, after: String, first: Int, last: Int): ChapterBookmarkNodeConnection
snapshots: [SnapshotNode]
} }
type ModuleNodeConnection { type ModuleNodeConnection {
@ -865,7 +880,7 @@ type SchoolClassNodeEdge {
cursor: String! cursor: String!
} }
type SnapshotChapterNode implements Node & ChapterInterface { type SnapshotChapterNode implements ChapterInterface {
id: ID! id: ID!
chapter: ChapterNode! chapter: ChapterNode!
snapshot: SnapshotNode! snapshot: SnapshotNode!
@ -892,6 +907,7 @@ type SnapshotNode implements Node {
chapters(offset: Int, before: String, after: String, first: Int, last: Int, id: ID): SnapshotChapterNodeConnection chapters(offset: Int, before: String, after: String, first: Int, last: Int, id: ID): SnapshotChapterNodeConnection
hiddenContentBlocks(offset: Int, before: String, after: String, first: Int, last: Int, slug: String, title: String): ContentBlockNodeConnection! hiddenContentBlocks(offset: Int, before: String, after: String, first: Int, last: Int, slug: String, title: String): ContentBlockNodeConnection!
chapterSnapshots(offset: Int, before: String, after: String, first: Int, last: Int, id: ID): SnapshotChapterNodeConnection! chapterSnapshots(offset: Int, before: String, after: String, first: Int, last: Int, id: ID): SnapshotChapterNodeConnection!
title: String
} }
input SpellCheckInput { input SpellCheckInput {