Skip to content

Instantly share code, notes, and snippets.

@chx
Created April 20, 2015 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chx/2e0a392499843cdd9df5 to your computer and use it in GitHub Desktop.
Save chx/2e0a392499843cdd9df5 to your computer and use it in GitHub Desktop.
"$err" : "Runner error: BadValue cannot sort with keys that are parallel arrays",
> db.test.drop();
true
> db.test.insert({f1:[1],f2:[1]});
WriteResult({ "nInserted" : 1 })
> db.test.find().sort({'f1':1,'f2':1});
error: {
"$err" : "Runner error: BadValue cannot sort with keys that are parallel arrays",
"code" : 17144
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment