Update schema
This commit is contained in:
parent
15aff9054c
commit
be9a829b01
110
schema.graphql
110
schema.graphql
|
|
@ -190,24 +190,6 @@ enum BasicKnowledgeType {
|
|||
INTERDISCIPLINARY
|
||||
}
|
||||
|
||||
type BookNode implements Node {
|
||||
title: String!
|
||||
slug: String!
|
||||
id: ID!
|
||||
pk: Int
|
||||
topics(offset: Int, before: String, after: String, first: Int, last: Int, slug: String, slug_Icontains: String, slug_In: [String], title: String, title_Icontains: String, title_In: [String]): TopicNodeConnection
|
||||
}
|
||||
|
||||
type BookNodeConnection {
|
||||
pageInfo: PageInfo!
|
||||
edges: [BookNodeEdge]!
|
||||
}
|
||||
|
||||
type BookNodeEdge {
|
||||
node: BookNode
|
||||
cursor: String!
|
||||
}
|
||||
|
||||
type ChapterBookmarkNode implements Node {
|
||||
user: UserNode!
|
||||
note: NoteNode
|
||||
|
|
@ -225,7 +207,11 @@ type ChapterBookmarkNodeEdge {
|
|||
cursor: String!
|
||||
}
|
||||
|
||||
type ChapterNode implements Node {
|
||||
interface ChapterInterface {
|
||||
contentBlocks(offset: Int, before: String, after: String, first: Int, last: Int, slug: String, title: String): ContentBlockNodeConnection
|
||||
}
|
||||
|
||||
type ChapterNode implements Node, ChapterInterface {
|
||||
title: String!
|
||||
slug: String!
|
||||
description: String!
|
||||
|
|
@ -347,6 +333,18 @@ type CreateSchoolClassPayload {
|
|||
clientMutationId: String
|
||||
}
|
||||
|
||||
input CreateSnapshotInput {
|
||||
module: ID!
|
||||
selectedClass: ID!
|
||||
clientMutationId: String
|
||||
}
|
||||
|
||||
type CreateSnapshotPayload {
|
||||
snapshot: SnapshotNode
|
||||
success: Boolean
|
||||
clientMutationId: String
|
||||
}
|
||||
|
||||
input CreateTeamInput {
|
||||
name: String!
|
||||
clientMutationId: String
|
||||
|
|
@ -408,6 +406,7 @@ type CustomMutation {
|
|||
updateLastTopic(input: UpdateLastTopicInput!): UpdateLastTopicPayload
|
||||
updateChapterVisibility(input: UpdateChapterVisibilityInput!): UpdateChapterVisibilityPayload
|
||||
syncModuleVisibility(input: SyncModuleVisibilityInput!): SyncModuleVisibilityPayload
|
||||
createSnapshot(input: CreateSnapshotInput!): CreateSnapshotPayload
|
||||
_debug: DjangoDebug
|
||||
}
|
||||
|
||||
|
|
@ -422,14 +421,12 @@ type CustomQuery {
|
|||
assignment(id: ID!): AssignmentNode
|
||||
assignments(offset: Int, before: String, after: String, first: Int, last: Int): AssignmentNodeConnection
|
||||
node(id: ID!): Node
|
||||
book(id: ID!): BookNode
|
||||
topic(slug: String): TopicNode
|
||||
module(slug: String, id: ID): ModuleNode
|
||||
chapter(id: ID!): ChapterNode
|
||||
contentBlock(id: ID!): ContentBlockNode
|
||||
books(offset: Int, before: String, after: String, first: Int, last: Int, slug: String, slug_Icontains: String, slug_In: [String], title: String, title_Icontains: String, title_In: [String]): BookNodeConnection
|
||||
topics(offset: Int, before: String, after: String, first: Int, last: Int, slug: String, slug_Icontains: String, slug_In: [String], title: String, title_Icontains: String, title_In: [String]): TopicNodeConnection
|
||||
modules(offset: Int, before: String, after: String, first: Int, last: Int, slug: String, slug_Icontains: String, slug_In: [String], title: String, title_Icontains: String, title_In: [String]): ModuleNodeConnection
|
||||
topics(before: String, after: String, first: Int, last: Int): TopicConnection
|
||||
modules(before: String, after: String, first: Int, last: Int): ModuleConnection
|
||||
chapters(offset: Int, before: String, after: String, first: Int, last: Int, slug: String, title: String): ChapterNodeConnection
|
||||
objectiveGroup(id: ID!): ObjectiveGroupNode
|
||||
objectiveGroups(offset: Int, before: String, after: String, first: Int, last: Int, title: String, module_Slug: String): ObjectiveGroupNodeConnection
|
||||
|
|
@ -614,7 +611,22 @@ type ModuleBookmarkNode {
|
|||
module: ModuleNode!
|
||||
}
|
||||
|
||||
type ModuleNode implements Node {
|
||||
type ModuleConnection {
|
||||
pageInfo: PageInfo!
|
||||
edges: [ModuleEdge]!
|
||||
nodes: [ModuleNode]
|
||||
}
|
||||
|
||||
type ModuleEdge {
|
||||
node: ModuleNode
|
||||
cursor: String!
|
||||
}
|
||||
|
||||
interface ModuleInterface {
|
||||
pk: Int
|
||||
}
|
||||
|
||||
type ModuleNode implements Node, ModuleInterface {
|
||||
title: String!
|
||||
slug: String!
|
||||
metaTitle: String!
|
||||
|
|
@ -853,6 +865,35 @@ type SchoolClassNodeEdge {
|
|||
cursor: String!
|
||||
}
|
||||
|
||||
type SnapshotChapterNode implements Node, ChapterInterface {
|
||||
id: ID!
|
||||
chapter: ChapterNode!
|
||||
snapshot: SnapshotNode!
|
||||
titleHidden: Boolean
|
||||
descriptionHidden: Boolean
|
||||
contentBlocks(offset: Int, before: String, after: String, first: Int, last: Int, slug: String, title: String): ContentBlockNodeConnection
|
||||
title: String
|
||||
description: String
|
||||
}
|
||||
|
||||
type SnapshotChapterNodeConnection {
|
||||
pageInfo: PageInfo!
|
||||
edges: [SnapshotChapterNodeEdge]!
|
||||
}
|
||||
|
||||
type SnapshotChapterNodeEdge {
|
||||
node: SnapshotChapterNode
|
||||
cursor: String!
|
||||
}
|
||||
|
||||
type SnapshotNode implements Node {
|
||||
id: ID!
|
||||
module: ModuleNode!
|
||||
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!
|
||||
chapterSnapshots(offset: Int, before: String, after: String, first: Int, last: Int, id: ID): SnapshotChapterNodeConnection!
|
||||
}
|
||||
|
||||
input SpellCheckInput {
|
||||
text: String!
|
||||
assignment: ID!
|
||||
|
|
@ -955,6 +996,17 @@ type TeamNode implements Node {
|
|||
pk: Int
|
||||
}
|
||||
|
||||
type TopicConnection {
|
||||
pageInfo: PageInfo!
|
||||
edges: [TopicEdge]!
|
||||
nodes: [TopicNode]
|
||||
}
|
||||
|
||||
type TopicEdge {
|
||||
node: TopicNode
|
||||
cursor: String!
|
||||
}
|
||||
|
||||
type TopicNode implements Node {
|
||||
title: String!
|
||||
slug: String!
|
||||
|
|
@ -968,16 +1020,6 @@ type TopicNode implements Node {
|
|||
modules(offset: Int, before: String, after: String, first: Int, last: Int, slug: String, slug_Icontains: String, slug_In: [String], title: String, title_Icontains: String, title_In: [String]): ModuleNodeConnection
|
||||
}
|
||||
|
||||
type TopicNodeConnection {
|
||||
pageInfo: PageInfo!
|
||||
edges: [TopicNodeEdge]!
|
||||
}
|
||||
|
||||
type TopicNodeEdge {
|
||||
node: TopicNode
|
||||
cursor: String!
|
||||
}
|
||||
|
||||
scalar UUID
|
||||
|
||||
input UpdateAnswerArgument {
|
||||
|
|
|
|||
Loading…
Reference in New Issue