账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    关于node+mongoose多层查询的问题
    65
    0

    我的json结构如下:
    {

    "date": "20171123",
    "stories": [
        {
            "images": "1.jpg",
            "title": "标题1"
        },
        {
            "images": "2.jpg",
            "title": "标题2"
        },
        {
            "images": "3.jpg",
            "title": "标题3"
        }
    ],
    "top_stories": [
        {
            "top_images": "top1.jpg",
            "top_title": "top1"
        },
         {
            "top_images": "top2.jpg",
            "top_title": "top2"
        },
        {
            "top_images": "top3.jpg",
            "top_title": "top3"
        }
    ]

    }
    请问如何定义schema以及如何进行增删改查?

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部