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
let user = await UserService.find({
query: {
phone: {
number: '+919123456789'
},
$limit: 1
}
});
Error: select count(distinct(\"users\".\"id\")) as \"total\" from \"users\" where \"users\".\"phone\"#>'{number}' = $1 - invalid input syntax for type json"
If I omit the + before the query i.e. only use '919123456789' (which is actually present in my DB), it doesn't complain but doesn't give the correct result either. It just can't find the record.
let user = await UserService.find({
query: {
phone: {
number: '919123456789''
},
$limit: 1
}
});
Please help as to what could be causing this and what can I do so that it just works. Thanks.
Hi,
I've an interesting bug annoying me for quite a few hours now. I have my users model which has a phone jsonb field. I've defined my Schema as follows:
now, with the following query, I get an error:
If I omit the + before the query i.e. only use '919123456789' (which is actually present in my DB), it doesn't complain but doesn't give the correct result either. It just can't find the record.
Please help as to what could be causing this and what can I do so that it just works. Thanks.
"objection": "^1.6.9",
"feathers-objection": "^4.2.3",
The text was updated successfully, but these errors were encountered: