val
08/31/2018, 7:31 AMcontent
item as also updated". I can't manually update the updatedAt
fieldcatalinmiron
08/31/2018, 7:45 AMcatalinmiron
08/31/2018, 7:46 AMupdatedAt
is update on updateComment
not on createComment. On createComment updatedAt
=== createdAt
.catalinmiron
08/31/2018, 7:46 AMcatalinmiron
08/31/2018, 7:47 AMcreateType => updatedAt === createdAt
(both are created with the same value)
updateType => updatedAt !== createdAt
(only updatedAt field will be updated)val
08/31/2018, 7:52 AMcontent
field which the comment was connected tocatalinmiron
08/31/2018, 8:07 AMcatalinmiron
08/31/2018, 8:07 AMcatalinmiron
08/31/2018, 8:10 AMtype Comment {
id: ID! @unique
user: User!
content: Content!
}
type Content {
id: ID! @unique
whatever: String!
}
go with
type Comment {
id: ID! @unique
user: User!
content: String!
}
val
08/31/2018, 8:24 AM