Auto-indexing service and GraphQL API for AT Protocol Records quickslice.slices.network/
atproto gleam graphql

Filtered queries aren't working #7

open opened by trezy.codes

I've got a Quickslice instance running and I've confirmed 1) regular queries work, and 2) there is a record that should be returned by this filtered query. Non-filtered queries seem to work fine, but as soon as I apply a filter I get no results. I'd be happy to find out that there's something wrong with my queries, but they're adapted directly from the docs site so I'm pretty confident in them.

Non-filtered query#

query {
  gamesGamesgamesgamesgamesGame {
    edges {
      node {
        name
      }
    }
  }
}

Response

{
  "data": {
    "gamesGamesgamesgamesgamesGame": {
      "edges": [
        {
          "node": { "name": "asdf" }
        }
      ]
    }
  }
}

Filtered query#

query {
  gamesGamesgamesgamesgamesGame(where: { name: { eq: "asdf" } }) {
    edges {
      node {
        name
      }
    }
  }
}

Response

{
  "data": {
    "gamesGamesgamesgamesgamesGame": {
      "edges": []
    }
  }
}

FWIW, I'm using Postgres for the database, not sqlite. It was mentioned that this may be part of the issue.

sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:4jrld6fwpnwqehtce56qshzv/sh.tangled.repo.issue/3mcqh64elk422