Create a query for buble database

Hi I’d like to create a query which results will be displayed in a repeating group.

I can put filter in the repeating group, but what I want is to create a stand alone query, and the repeating group will display the results from the query.

The reason I want to do it so I later I can use the same query to build an API where it would be accessed from outside app, such as mobile app.

Can this be done? Should I create an API and the repeating group calls that API?

Yes, the query does like something, calls api when repeating group like awesome using database, such as multiplayer games or app.

like that? Thanks!

Thanks @rickandress, I will play around with it.