I’m trying to grab the related posts except the current post using WPGraphQL. My thought is to exclude the ID of the current post and display all related blog posts within the category.
I’m new to GraphQL, I don’t know how to figure out to solve it. is this possible in GraphQL? Please help
query MyQuery {
category(idType: DATABASE_ID, id: 1) {
posts {
edges {
node {
id
title
}
}
}
}
}