Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
每当我使用 Padrino Admin 界面编辑具有数组字段的对象时,引号都会被转义,并且 MongoDB 不再将数组识别为数组。
字段在对象模型定义中被正确定义为数组。
有任何想法吗?
编辑:数组由控制器的 post 和 put 方法接收,在文档被持久化到 MongoDB 之后,它被转义导致字符串。也许这与 MongoDB 序列化有关?