I have firestore data structure like this:
How to achieve to get ts_app_theme with name default only?
I already try query like this
SELECT * FROM ts_app_theme WHERE __key__ HAS ANCESTOR KEY(ts_app_config, '$merchant_key') AND __key__ = KEY(ts_app_theme, 'default')
it didn't work..
I can do this
SELECT * FROM ts_app_theme WHERE __key__ HAS ANCESTOR KEY(ts_app_config, '$merchant_key')
but will return another document in ts_app_theme if I have more document other than default later..
Thank you..
