Is there a way to query list by specific field?

hi guys! is there a way to query list by specific field? example: typeId

 query{
  postIndex( typeId: 2) {
    edges {
      node {
        id
        text
        typeId
      }
    }
  }
}

https://composedb.js.org/docs/preview/interact-with-data#queries

1 Like

Not currently through the GraphQL APIs unfortunately. It’s something we want to add support for in the future though. (CC @avi for the feature request).

In the meantime, one possible workaround is that the Postgres database that backs ComposeDB has the full content of every document in a JSONB column, so you could connect to that postgres database directly and query custom fields with a JSONB index on the data.

1 Like

Hi Cristiana, this is our most popular feature request! I added an upvote from you to our backlog. We are working to add this later in the winter.