2013-04-24 4 views
3

이것은 실제로 두 가지 질문입니다.몽구제 하위 문서 정렬

사용 MongooseJS

  1. 당신은 스키마의 기본 정렬 순서를 설정할 수 있습니까?
  2. 하위 문서를 정렬하는 방법을 제어 할 수 있습니까?

    autoIndex: bool - defaults to true 
    bufferCommands: bool - defaults to 
    true capped: bool - defaults to false 
    collection: string - no default 
    id: bool - defaults to true 
    _id: bool - defaults to true 
    minimize: bool - controls document#toObject behavior when called manually - defaults to true 
    read: string 
    safe: bool - defaults to true. 
    shardKey: bool - defaults 
    to null strict: bool - defaults to true toJSON - object - no default 
    toObject - object - no default 
    versionKey: bool - defaults to "__v" 
    

    당신은 당신이 생각 뭘 하려는지 달성하는 plugin을 할 수 있습니다 :

+0

답변이 확실하지 않습니다. Google에서 코드를 조사해 볼 수는 있지만 어쩌면 자신이 성취하려는 것을 설명하면 다른 사람이 다른 방법을 제공 할 수 있습니다. – kentcdodds

답변