App Builder and sql query | Community
Skip to main content
Level 2
December 12, 2023
Question

App Builder and sql query

  • December 12, 2023
  • 1 reply
  • 837 views

I implement autocomplete and store the data for it in the state.

But there is no way to send direct sql queries to the state.

I see that adobe-lib-state is a wrapper around Azure DB Cosmos.

As I understand it, it looks like you can write sql queries directly into the cosmos database.

Question:

The ability to write SQL queries for '@adobe/aio-lib-state' is not implemented because they won't work?

Or are they not implemented, but if you write directly (state?._cosmos?.container?.items) queries, will it work?

 

Regards,

Eugene

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Adobe Employee
February 20, 2024

Cosmos is an implementation detail, and will definitely change in the future.  Any state-lib usage outside the provided api will break at some point.