Hi, how can I create a GraphQL Query that will return a single Group by its title rather than its id?
I can use the playground to get all Groups and I can also get a single group via its id, but id’s are randomly named and so I want to get a group by its title which I create and thus can control.
I though I’d be able to do something like this …
// fails
{
boards(ids: 000000000) {
groups(title: “nice_title”) {
id
title
}
}
}
but if I’m reading the documentation correctly (API v2 Documentation) then the only thing I can do is this …
// works
{
boards(ids: 000000000) {
groups (ids: “some_random_title”) {
id
title
}
}
}
Or get all groups and use code to iterate the groups to find the one I want …
// works - gets all groups for my board
{
boards(ids: 000000000) {
groups {
id
title
}
}
}
I would prefer not to do this for performance reasons.
I’m certainly no GraphQL expert so any help is appreciate, Thanks!!!