Skip to content

Add isDefaultSite filter to sites query#429

Merged
jams2 merged 5 commits into
torchbox:mainfrom
ianmeigh:feature/add-default-site-filter-to-sites-query
Apr 21, 2026
Merged

Add isDefaultSite filter to sites query#429
jams2 merged 5 commits into
torchbox:mainfrom
ianmeigh:feature/add-default-site-filter-to-sites-query

Conversation

@ianmeigh

Copy link
Copy Markdown
Contributor

Adds an optional isDefaultSite: Boolean argument to the sites GraphQL query, allowing sites to be filtered by their default status.

This is useful for multi-site Wagtail setups where we want to query only the default site for things like global nav, settings, or fallback content, without knowing its hostname or id.

@jams2 jams2 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ianmeigh . Could you please update the changelog and the documentation - we should document the query arg as shown in the site query example.

@ianmeigh ianmeigh requested a review from jams2 April 20, 2026 14:02
Comment thread docs/general-usage/graphql-types.rst Outdated
@ianmeigh ianmeigh requested a review from jams2 April 20, 2026 15:06
@jams2 jams2 merged commit 5c8f8a7 into torchbox:main Apr 21, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants