Hello,
Very new to redash and loving it so far.
We have a mongo db and use aggregate function to join collections. The ‘as’ part of the aggregate ‘lookup’ returns an object in a column labelled ‘myJoin’ in the format below
{"_id":“5ddb771d9158ef53bfd6823c”,“historyId”:“ctV4bd3w67m”,“createdOn”:“2019-11-25T06:39:25”,"__v":0}]
How do I show createdOn and historyId as seperate columns in the table visualization? Am using this as a query currently:
{
"collection": "players",
"aggregate": [
{"$lookup": {
"from": "history",
"localField": "pid",
"foreignField": "pid",
"as": "myJoin"
}},
{"$limit": 10}
]
}