MongoDB aggregation structure causing some values to return as none
I have written a simple function using mongoDB aggregation pipelines. The issue occurs when attempting to run it. For some reason min_price and max_price both return as none instead of a real value. The individual documents are formatted as so,…