Trying to set a static filter in python eve using Mongodb. I am looking to return a list of distinct categories based on a content collection.
category = {
'datasource': {
'source': 'content',
#'filter': {'category': {'$distinct': True} },
'projection': {'category': 1},
}
}
The above is causing an error (when the filter line is commented out). Any help much appreciated.