jerryge
V2EX  ›  Node.js

从 mongodb 切换到 mongoose 引发的问题

  •  
  •   jerryge · Apr 3, 2014 · 4685 views
    This topic created in 4600 days ago, the information mentioned may be changed or developed.
    从mongodb切换到mongoose 到后,mongoose没有办法读取修改mongodb创建的表和数据。对mongoose自己创建的表是可以的。请教,这是何解?
    8 replies  •  1970-01-01 08:00:00 +08:00
    airyland
    airyland
    Apr 3, 2014
    1
    试试 _id:false ?
    jerryge
    jerryge
    OP
    Apr 3, 2014
    2
    @airyland 不行
    ijse
    ijse
    Apr 3, 2014
    3
    有什么提示吗? 是不是定义的Schema不对。。
    jerryge
    jerryge
    OP
    Apr 3, 2014
    4
    @ijse 没有错误提示,schema 检查好多边的。
    vietor
    vietor
    Apr 3, 2014
    5
    versionKey ?
    rexren
    rexren
    Apr 4, 2014
    6
    实在不行做一次migration就可以了
    jerryge
    jerryge
    OP
    Apr 4, 2014
    7
    @vietor 好像不是这个问题。
    lijinma
    lijinma
    Apr 5, 2014
    8
    把你的关键代码贴一下?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3585 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 10:07 · PVG 18:07 · LAX 02:07 · JFK 05:07
    ♥ Do have faith in what you're doing.