SERVER-137530ClosedFixed
Type information in the graph should flow through renames
The following should work: [\{$match: {$and: [{x: {$type: 'number'}}, \{x: {$not: {$type: 'array'}}}]}}, {$set: \{a: '$x'}}] The type of 'x' is number. We should report that the type of 'a' is number too!