When using wp-graphql
, you can use this package to bring the similar posts in the post object. Based on the tags here
cd wp-content/plugins
git clone --branch master https://github.com/m-inan/wp-graphql-similar-posts.git
query Post {
post(id: 1, idType: DATABASE_ID) {
title
similar(first: 5) {
nodes {
title
}
}
}
}
No Dependencies.
If believe you've found an issue, please report it along with any relevant details to reproduce it.
Please do not use the issue tracker for personal support requests. Instead, use StackOverflow.
Yes please! Feature requests / pull requests are welcome.