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