def _process(self): rooms = (Room.query .filter_by(is_deleted=False) .options(subqueryload('available_equipment').load_only('id')) .all()) return jsonify(rooms_schema.dump(rooms))
def _process(self): return jsonify(rooms_schema.dump(self.room, many=False))