When using an array of maps the rebuilt query miss the [ ]
Query
UNWIND [{a:1},{b:2}] AS props
Result
UNWIND { a: 1 }{ b: 2 } AS props;
AST
{
nnodes: 11,
eof: true,
errors: [],
root: {
type: 'statement',
body: {
type: 'query',
clauses: [
{
type: 'unwind',
expression: {
type: 'collection',
elements: [
{
type: 'map',
entries: { a: { type: 'integer', value: 1 } }
},
{
type: 'map',
entries: { b: { type: 'integer', value: 2 } }
}
]
},
alias: { type: 'identifier', name: 'props' }
}
],
options: []
},
options: []
}
}
When using an array of maps the rebuilt query miss the
[ ]Query
Result
AST