v0.10.0 - The "Happy Holidays" release
The end of year is almost upon us, so here is one final release 🌲 🎉 🎆
A few little things to celebrate:
- Query page via url path (#52). Thanks @NathHorrigan
- Fix filtering by content type in page/pages queries (#147). Thanks @isolationism for another PR that finally propted that fix
- Fix "excluding custom field" warning with graphene-django>=2.8.1 (#146). Less noise is good, right?
Filter by url path
Grapple supported filtering by slug
from the very beginning, however it is not uncommon to have multuple pages with the same slug. The slug is unique only on the tree level the page is added to. e.g.
about/
├─ people
special-index/
├─ a-few-levels/
│ ├─ deep/
│ │ ├─ people
Trying to query for the people
slug
{
page(slug: "people") {
id
}
}
would not return any result since there are multiple possibilities. With the new urlPath
filter one can get the result they need:
{
page(urlPath: "/about/people/") {
id
}
}
Note: multi-site setups are partially supported. If you have two or more pages with the same url path (say, /about/people
) that live under different site roots, then only the first one will be returned. A way around it is to query with inSite: true
from the relevant domain which will help narrow the query down