[BUG] Query is not parsed correctly for where:{ _and :[] }
mesudip opened this issue · comments
Sudip Bhattarai commented
Am i missing something
gotql.parser(
{
operation: {
name: "Metadata",
args: {
where: {
_and: [
{ hash: { _in: ['a','b'] } }
,{pool:{ _eq:32}}
]
}
},
fields: ["key", "value"]
}
},
'query'
)
>>> query { Metadata(where: { _and: ["[object Object]", "[object Object]"] }) { key value } }
Sudip Bhattarai commented
Line 195 in a902619
This is the culprit line. I couldn't fix it due to Type mismatch errors. Typescript is beyond me.
Lucas Santos commented
I think this is due to some JSON conversion, thanks for the issue! I'll look into it!
Lucas Santos commented
Sorry about the delay, had a very busy month. I'm taking care of this today.