mongoose-like querying partially working