data-api-builder icon indicating copy to clipboard operation
data-api-builder copied to clipboard

[Bug]: caseInsensitive not working on GraphQL query

Open tim-tmp opened this issue 1 year ago • 0 comments

What happened?

We are developing an Azure Static Web App with a CosmosDB accessed via GraphQL queries using the feature outlined here: https://learn.microsoft.com/en-us/azure/static-web-apps/database-overview

When including caseInsensitive on a GraphQL query we get the following error:

"Operation caseInsensitive on int type not supported."

The caseInsensitive input field exists in the schema which Postman validates also.

` StringFilterInput

      {
        "name": "caseInsensitive",
        "description": "Case Insensitive",
        "type": {
          "kind": "SCALAR",
          "name": "Boolean",
          "ofType": null
        },
        "defaultValue": "false"
      },

`

The query we are using is: { records: assets( filter: { Title: { contains: "hello world", caseInsensitive: true } }, first: 10 ) { items { id, Title } endCursor hasNextPage __typename } }

Version

0.10

What database are you using?

CosmosDB NoSQL

What hosting model are you using?

Static Web Apps (SWA)

Which API approach are you accessing DAB through?

GraphQL

Relevant log output

Operation caseInsensitive on int type not supported.

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

tim-tmp avatar Jun 25 '24 11:06 tim-tmp