-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add level and Parent fields for Categories query #149
Comments
This should already be possible. Check out, {
categories(level:1, ancestorOf:123) {
#...
}
} In the above |
In the entries query this is possible, that would be cool for categories too, like:
If we can retrieve category groups like this it's easy to build nested navigations in js because we know all the relationships we need, without relying on nesting. |
Ah, I see! These new fields are implemented on {
category {
id
title
parent {
id
}
children {
id
}
next { id }
nextSibling { id }
prev { id }
prevSibling { id }
}
} |
I will give it try, i switched to dev-master the last day, querys on the dev master took up to 8 Seconds on our server. Is there something to consider when switching the branch? |
Nope, nothing performance wise should have changed. between |
will check that and open a new issue if the problem resides.Am 07.09.2018 20:50 schrieb Mark Huot <[email protected]>:Nope, nothing performance wise should have changed. between 1.1.0 and dev-master. You will want to make sure devMode is false though otherwise GraphQL will spend a bunch of time analyzing your schema on each request. That's been there for a while though so it shouldn't vary by branch.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
|
I'm interested in whether this is planned for a release. It would really simplify some things I'm currently working on over the coming weeks and I'd be curious to know about progress. |
Same here, I'm also waiting, do you have a release date? |
Closing this issue. The fix is included in version 1.2.1. |
Add level and Parent fields for Categories query. Especially helpful when creating category navigations
The text was updated successfully, but these errors were encountered: