update: disable save draft btn on published posts

This commit is contained in:
MTG2000
2022-07-12 18:17:58 +03:00
parent c37d62ad17
commit c824be44a6
7 changed files with 34 additions and 8 deletions

View File

@@ -87,6 +87,7 @@ export interface NexusGenObjects {
deadline: string; // String!
excerpt: string; // String!
id: number; // Int!
is_published?: boolean | null; // Boolean
reward_amount: number; // Int!
title: string; // String!
votes_count: number; // Int!
@@ -161,6 +162,7 @@ export interface NexusGenObjects {
createdAt: NexusGenScalars['Date']; // Date!
excerpt: string; // String!
id: number; // Int!
is_published?: boolean | null; // Boolean
title: string; // String!
votes_count: number; // Int!
}
@@ -170,6 +172,7 @@ export interface NexusGenObjects {
createdAt: NexusGenScalars['Date']; // Date!
excerpt: string; // String!
id: number; // Int!
is_published?: boolean | null; // Boolean
title: string; // String!
votes_count: number; // Int!
}
@@ -243,6 +246,7 @@ export interface NexusGenFieldTypes {
deadline: string; // String!
excerpt: string; // String!
id: number; // Int!
is_published: boolean | null; // Boolean
reward_amount: number; // Int!
tags: NexusGenRootTypes['Tag'][]; // [Tag!]!
title: string; // String!
@@ -357,6 +361,7 @@ export interface NexusGenFieldTypes {
createdAt: NexusGenScalars['Date']; // Date!
excerpt: string; // String!
id: number; // Int!
is_published: boolean | null; // Boolean
tags: NexusGenRootTypes['Tag'][]; // [Tag!]!
title: string; // String!
type: string; // String!
@@ -371,6 +376,7 @@ export interface NexusGenFieldTypes {
createdAt: NexusGenScalars['Date']; // Date!
excerpt: string; // String!
id: number; // Int!
is_published: boolean | null; // Boolean
tags: NexusGenRootTypes['Tag'][]; // [Tag!]!
title: string; // String!
type: string; // String!
@@ -413,6 +419,7 @@ export interface NexusGenFieldTypes {
createdAt: NexusGenScalars['Date']; // Date!
excerpt: string; // String!
id: number; // Int!
is_published: boolean | null; // Boolean
title: string; // String!
votes_count: number; // Int!
}
@@ -442,6 +449,7 @@ export interface NexusGenFieldTypeNames {
deadline: 'String'
excerpt: 'String'
id: 'Int'
is_published: 'Boolean'
reward_amount: 'Int'
tags: 'Tag'
title: 'String'
@@ -556,6 +564,7 @@ export interface NexusGenFieldTypeNames {
createdAt: 'Date'
excerpt: 'String'
id: 'Int'
is_published: 'Boolean'
tags: 'Tag'
title: 'String'
type: 'String'
@@ -570,6 +579,7 @@ export interface NexusGenFieldTypeNames {
createdAt: 'Date'
excerpt: 'String'
id: 'Int'
is_published: 'Boolean'
tags: 'Tag'
title: 'String'
type: 'String'
@@ -612,6 +622,7 @@ export interface NexusGenFieldTypeNames {
createdAt: 'Date'
excerpt: 'String'
id: 'Int'
is_published: 'Boolean'
title: 'String'
votes_count: 'Int'
}

View File

@@ -27,6 +27,7 @@ type Bounty implements PostBase {
deadline: String!
excerpt: String!
id: Int!
is_published: Boolean
reward_amount: Int!
tags: [Tag!]!
title: String!
@@ -113,6 +114,7 @@ interface PostBase {
createdAt: Date!
excerpt: String!
id: Int!
is_published: Boolean
title: String!
votes_count: Int!
}
@@ -172,6 +174,7 @@ type Question implements PostBase {
createdAt: Date!
excerpt: String!
id: Int!
is_published: Boolean
tags: [Tag!]!
title: String!
type: String!
@@ -187,6 +190,7 @@ type Story implements PostBase {
createdAt: Date!
excerpt: String!
id: Int!
is_published: Boolean
tags: [Tag!]!
title: String!
type: String!

View File

@@ -57,6 +57,7 @@ const PostBase = interfaceType({
t.nonNull.string('body');
t.nonNull.string('excerpt');
t.nonNull.int('votes_count');
t.boolean('is_published');
},
})