Skip to content

[Bug]: caseInsensitive not working on GraphQL query #2280

@tim-tmp

Description

@tim-tmp

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

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcosmoscriCustomer Reported issuegraphqltriageissues to be triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions