feat: loading state to comments, delay success until comment is fetched, enable collapsing replies, fix comments section cards borders

This commit is contained in:
MTG2000
2022-07-26 17:27:16 +03:00
parent 9492746441
commit a2d84c8f54
7 changed files with 93 additions and 35 deletions

View File

@@ -374,6 +374,7 @@ export interface NexusGenFieldTypes {
Story: { // field return type
author: NexusGenRootTypes['Author']; // Author!
body: string; // String!
comments: NexusGenRootTypes['PostComment'][]; // [PostComment!]!
cover_image: string | null; // String
createdAt: NexusGenScalars['Date']; // Date!
excerpt: string; // String!
@@ -579,6 +580,7 @@ export interface NexusGenFieldTypeNames {
Story: { // field return type name
author: 'Author'
body: 'String'
comments: 'PostComment'
cover_image: 'String'
createdAt: 'Date'
excerpt: 'String'

View File

@@ -186,6 +186,7 @@ type Question implements PostBase {
type Story implements PostBase {
author: Author!
body: String!
comments: [PostComment!]!
cover_image: String
createdAt: Date!
excerpt: String!