SequelizeJSON - Invalid Value
Opened this issue · 0 comments
a-zog commented
Thank you for this awesome app, tu-ql is really cool
When trying to perform a search on the name field in "Task" model, I tried the SequelizeJSON format as recommended:
QUERY:
query($where: SequelizeJSON) {
tasks(where: $where) {
name
}
}
VARIABLES:
{
"where": "{\"name\": {\"like\": \"Tas%\"}}"
}
But an error is returned:
"errors": [
{
"message": "Invalid value { '$like': 'Tas%' }",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"tasks"
]
}
Any example / best practices to share?
Thanks a lot