Update schema
This commit is contained in:
parent
da85d3dbc2
commit
046b741458
|
|
@ -20,7 +20,7 @@ module.exports = (on, config) => {
|
||||||
on('task', {
|
on('task', {
|
||||||
getSchema() {
|
getSchema() {
|
||||||
return readFileSync(
|
return readFileSync(
|
||||||
resolve(__dirname, '../../../schema.graphql'),
|
resolve(__dirname, '../../../server/schema.graphql'),
|
||||||
'utf8'
|
'utf8'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -218,38 +218,17 @@ type ChapterBookmarkNodeEdge {
|
||||||
cursor: String!
|
cursor: String!
|
||||||
}
|
}
|
||||||
|
|
||||||
type ChapterInSnapshotNode implements ChapterInterface {
|
|
||||||
id: ID!
|
|
||||||
chapter: ChapterNode!
|
|
||||||
snapshot: SnapshotNode!
|
|
||||||
titleHidden: Boolean
|
|
||||||
descriptionHidden: Boolean
|
|
||||||
description: String
|
|
||||||
title: String
|
|
||||||
}
|
|
||||||
|
|
||||||
type ChapterInSnapshotNodeConnection {
|
|
||||||
pageInfo: PageInfo!
|
|
||||||
edges: [ChapterInSnapshotNodeEdge]!
|
|
||||||
}
|
|
||||||
|
|
||||||
type ChapterInSnapshotNodeEdge {
|
|
||||||
node: ChapterInSnapshotNode
|
|
||||||
cursor: String!
|
|
||||||
}
|
|
||||||
|
|
||||||
interface ChapterInterface {
|
interface ChapterInterface {
|
||||||
id: ID!
|
|
||||||
description: String
|
description: String
|
||||||
title: String
|
title: String
|
||||||
}
|
}
|
||||||
|
|
||||||
type ChapterNode implements ChapterInterface {
|
type ChapterNode implements Node & ChapterInterface {
|
||||||
title: String
|
title: String
|
||||||
slug: String!
|
slug: String!
|
||||||
description: String
|
description: String
|
||||||
titleHiddenFor(offset: Int, before: String, after: String, first: Int, last: Int, name: String): SchoolClassNodeConnection!
|
titleHiddenFor: [SchoolClassNode]
|
||||||
descriptionHiddenFor(offset: Int, before: String, after: String, first: Int, last: Int, name: String): SchoolClassNodeConnection!
|
descriptionHiddenFor: [SchoolClassNode]
|
||||||
id: ID!
|
id: ID!
|
||||||
bookmark: ChapterBookmarkNode
|
bookmark: ChapterBookmarkNode
|
||||||
contentBlocks: [ContentBlockNode]
|
contentBlocks: [ContentBlockNode]
|
||||||
|
|
@ -300,13 +279,12 @@ input ContentBlockInput {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ContentBlockInterface {
|
interface ContentBlockInterface {
|
||||||
id: ID!
|
|
||||||
title: String
|
title: String
|
||||||
contents: GenericStreamFieldType
|
contents: GenericStreamFieldType
|
||||||
type: String
|
type: String
|
||||||
}
|
}
|
||||||
|
|
||||||
type ContentBlockNode implements ContentBlockInterface {
|
type ContentBlockNode implements Node & ContentBlockInterface {
|
||||||
title: String
|
title: String
|
||||||
slug: String!
|
slug: String!
|
||||||
hiddenFor: [SchoolClassNode]
|
hiddenFor: [SchoolClassNode]
|
||||||
|
|
@ -724,7 +702,7 @@ type ObjectiveGroupNode implements Node {
|
||||||
id: ID!
|
id: ID!
|
||||||
title: ObjectiveGroupTitle
|
title: ObjectiveGroupTitle
|
||||||
module: ModuleNode!
|
module: ModuleNode!
|
||||||
hiddenFor(offset: Int, before: String, after: String, first: Int, last: Int, name: String): SchoolClassNodeConnection!
|
hiddenFor: [SchoolClassNode]
|
||||||
objectives(offset: Int, before: String, after: String, first: Int, last: Int, text: String): ObjectiveNodeConnection!
|
objectives(offset: Int, before: String, after: String, first: Int, last: Int, text: String): ObjectiveNodeConnection!
|
||||||
pk: Int
|
pk: Int
|
||||||
displayTitle: String
|
displayTitle: String
|
||||||
|
|
@ -751,8 +729,8 @@ type ObjectiveNode implements Node {
|
||||||
text: String!
|
text: String!
|
||||||
group: ObjectiveGroupNode!
|
group: ObjectiveGroupNode!
|
||||||
owner: UserNode
|
owner: UserNode
|
||||||
hiddenFor(offset: Int, before: String, after: String, first: Int, last: Int, name: String): SchoolClassNodeConnection!
|
hiddenFor: [SchoolClassNode]
|
||||||
visibleFor(offset: Int, before: String, after: String, first: Int, last: Int, name: String): SchoolClassNodeConnection!
|
visibleFor: [SchoolClassNode]
|
||||||
order: Int
|
order: Int
|
||||||
pk: Int
|
pk: Int
|
||||||
userCreated: Boolean
|
userCreated: Boolean
|
||||||
|
|
@ -903,7 +881,7 @@ type SchoolClassNodeEdge {
|
||||||
cursor: String!
|
cursor: String!
|
||||||
}
|
}
|
||||||
|
|
||||||
type SnapshotChapterNode implements ChapterInterface {
|
type SnapshotChapterNode implements Node & ChapterInterface {
|
||||||
id: ID!
|
id: ID!
|
||||||
description: String
|
description: String
|
||||||
title: String
|
title: String
|
||||||
|
|
@ -912,7 +890,7 @@ type SnapshotChapterNode implements ChapterInterface {
|
||||||
titleHidden: Boolean
|
titleHidden: Boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
type SnapshotContentBlockNode implements ContentBlockInterface {
|
type SnapshotContentBlockNode implements Node & ContentBlockInterface {
|
||||||
id: ID!
|
id: ID!
|
||||||
title: String
|
title: String
|
||||||
contents: GenericStreamFieldType
|
contents: GenericStreamFieldType
|
||||||
|
|
@ -927,7 +905,6 @@ type SnapshotNode implements Node {
|
||||||
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!
|
||||||
created: DateTime!
|
created: DateTime!
|
||||||
creator: UserNode
|
creator: UserNode
|
||||||
chapterSnapshots(offset: Int, before: String, after: String, first: Int, last: Int, id: ID): ChapterInSnapshotNodeConnection!
|
|
||||||
title: String
|
title: String
|
||||||
metaTitle: String
|
metaTitle: String
|
||||||
heroImage: String
|
heroImage: String
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue