code: function(query){
  
                  if(query.filter) {
                      var clone = canReflect.serialize(query);
                      var filter = query.filter;
                      clone.filter = {};
                      clone.filter[prop] = filter;
                      return clone;
                  } else {
                      return query;
                  }
              }
docs: {filter: {foo:bar}} -> {filter: {where: {foo: bar}}}