tensei icon indicating copy to clipboard operation
tensei copied to clipboard

Graphql filtering using where on boolean fields

Open bobbylemm opened this issue 4 years ago • 0 comments

Bug report

Describe the bug

Using graphql when trying to filter any resource with the where it throws an error - string cannot represent a non-string value A clear and concise description of what the bug is.

Steps to reproduce the behavior

  1. Go to 'your API Grahpql playground'.
  2. Create a query for a resource and add a filter using where, use a boolean field for comparisons.

Expected behaviour

I expect Graphql to fetch the appropriate result for my query A clear and concise description of what you expected to happen.

Screenshots

Screenshot 2021-02-15 at 11 35 38

If applicable, add screenshots to help explain your problem.

Code snippets

query {
          products(where: { trending: { _eq: true }}) {
            id
            name
            description
            price
            category {
              name
            }
        }
      }

If applicable, add code samples to help explain your problem.

System

  • Node.js version:
  • NPM version: 6.14.8
  • Tensei version: 0.6.3
  • Database: Sqlite
  • Operating system: MacOS

Additional context

Add any other context about the problem here.

bobbylemm avatar Feb 15 '21 16:02 bobbylemm