Skip to content

Is it possible to use GQL to query entries by the site *language* or query for a list of all sites? #14631

Closed Answered by brandonkelly
weotch asked this question in Q&A
Discussion options

You must be logged in to vote

Good question! Neither of those are possible yet, but it does seem like you should be able to query for elements by their language.

So I just added a language element query param (and corresponding GraphQL query argument) for Craft 4.9 and 5.0 (dcbd9a6).

If you need this now, you can update to the 4.9 branch by changing your craftcms/cms requirement in composer.json to 4.9.x-dev and run composer update.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@weotch
Comment options

@brandonkelly
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants