Sam Jackson
05/23/2018, 3:35 PMparent
for a parent Post, and children
for Posts with that Post as its parent. Right now when I define a Post with a parent, the parent gets the newly-created Post as its parent as well. Any thoughts on what might be going on?
type Post {
id: ID! @unique
body: String!
author: User! @relation(name: "UserPosts")
parent: Post @relation(name: "PostParent")
children: [Post!]! @relation(name: "PostChildren")
}
nilan
05/23/2018, 3:56 PM