Peter Albert
03/24/2018, 11:04 AMtype Author @model {
id: ID! @isUnique
posts: [Post!]! @relation(name: "AuthorOfPost")
}
type Post @model {
id: ID! @isUnique
author: Author @relation(name: "AuthorOfPost")
}
How can I query all Posts that do not have an author? Unfortunately, I cannot find something in the authorFilter
like id_is_null
.
Thankskuldar
03/24/2018, 11:09 AMPeter Albert
03/24/2018, 11:10 AMmatic
03/25/2018, 8:53 PMquery PostsWithAuthor {
allPosts(filter: { author: null }) {
id
author {
id
}
}
}
Peter Albert
03/26/2018, 6:13 AMPeter Albert
03/26/2018, 6:13 AMPeter Albert
03/26/2018, 6:14 AM