def METHOD_NAME(self, query, projection=None):
    """
    MSPileup query database API querying the data in underlying data layer.
    :param query: provide query JSON spec to MSPileup data layer
    :return: results of MSPileup data layer (list of dicts)
    """
    spec = {}  # (get all full docs) retrieve a list with the full documentation of all the pileups
    if 'query' in query:
        # use specific spec (JSON query)
        spec = query['query']
    # check if filters are present and use it as projection fields
    projection = {}
    for key in query.get('filters', []):
        projection[key] = 1
    return self.dataMgr.getPileup(spec, projection)