mongodb - 定义集合时的 MongoDB 产品集合和语法错误
问题描述
我正在尝试学习 MongoDB 并尝试进行收集:
{
"type": "Audio Album",
"title": "A Love Supreme",
"description": "by John Coltrane",
"shipping": {
"weight": 6,
"dimensions": [{
"width": 10,
"height": 10,
"depth": 1
}]
},
"pricing": [{
"list": 1200,
"retail": 1100,
"savings": 100,
"pct_savings": 8
}],
"details": {
"title": "A Love Supreme [Original Recording Reissued]",
"artist": "John Coltrane",
"genre": "Jazz",
"tracks": ["", "", "", ""]
}
}
但是,https://mongoplayground.net/p/AndUCdMxqLq显示我有一个语法错误,我很难找到它。有没有人可以提供帮助?谢谢
解决方案
推荐阅读
- python-3.x - 在无限循环中读取 ipywidgets 滑块值
- typescript - TypeORM - 在侦听器方法中使用事务 (BeforeUpdate)
- video - 哪种视频格式适合平面图形动画
- python - 烧瓶中的jinja2.exceptions.TemplateSyntaxError
- azure-machine-learning-studio - Azure ML:- 每次调用 Azure ML Web 服务时,如何使用来自第三方系统的数据重新训练 Azure ML 模型
- c# - 坚持单元测试数组中的最大数量
- c++ - 在方法中使用未初始化的变量
- r - 基于字符串中位置的条件字符串匹配 (r)
- node.js - 在不同服务器或同一服务器上托管服务器和客户端应用程序?
- windows - 如何更改用于 SAPI.SPVoice 的语音