mongoid without function

ms = MainClass.where({"uuid":"5be8c2c3-9812-4ab8-82dd-50827791e385"}).without(:_id, "classes._id", "classes.sub_classess._id", "classes.sub_classes.actions._id")

ms.each do |m|
    puts m.attributes
end

你可能感兴趣的:(mongoid without function)