Query results by the first letter/char of the title field

Hey!
I'm creating this topic to ask if there is any way to query some data from Prismic by starting letter/char of some fields?

I would like to query all posts based on the first letter of the tittle. Is there any way to solve that? Obviously I know that I could fetch all posts and later filter it on the client side, however, I don't think so if that would be optimal regarding optimalization.

Radek

Hi Radek,

Welcome to the community!

While you can't query by a letter, you can query by a field:

And you can order your documents Alphabetically by a field:

In my opinion, the best way to do this would be to sort on your application side as you suggested.

Thanks.