You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to use filters in queries, it should be possible to send null values in whereFilterInput's.
The client should be able to write parameterized filter queries, for example:
A query like this cannot be written atm from a client.
This will cause a Null value not supported errror. But since variables in the cost specification are quite expensive, this is a necessary requirement to keep the cost in an adequate range.
What is actually happening?
When sending a filter containing where, all variables need to be defined.
{
"errors": [
{
"message": "The provided value for filter `contains` of type StringOperationFilterInput is invalid. Null values are not supported.",
"locations": [
{
"line": 4,
"column": 19
}
],
"path": [
"products"
],
"extensions": {
"code": "HC0026",
"expectedType": "String!",
"filterType": "StringOperationFilterInput"
}
}
],
"data": {
"products": null
}
Product
Hot Chocolate
Version
15.0.0-p.21
Link to minimal reproduction
https://github.com/teberl/HotChocolate_Playground
Steps to reproduce
What is expected?
In order to use filters in queries, it should be possible to send null values in
where
FilterInput
's.The client should be able to write parameterized filter queries, for example:
A query like this cannot be written atm from a client.
This will cause a Null value not supported errror. But since variables in the cost specification are quite expensive, this is a necessary requirement to keep the cost in an adequate range.
What is actually happening?
When sending a filter containing
where
, all variables need to be defined.Relevant log output
Additional context
It seemed to work in 14.0.0-p.100, at least for the string filter i didn't realize the problem
Tested in 14.3.0 (our current production version) problem exists
Tested in 15.0.0-p.21 (current preview version) problem exists
Tested with several different filter inputs
IdOperationFilterInputType
,DateTimeOperationFilterInputType
andStringOperationFilterInputType
The text was updated successfully, but these errors were encountered: