tensei
tensei copied to clipboard
Graphql filtering using where on boolean fields
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
- Go to 'your API Grahpql playground'.
- 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

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.