Skip to content

Instantly share code, notes, and snippets.

@aheckmann
Created September 23, 2011 16:05
Show Gist options
  • Save aheckmann/1237759 to your computer and use it in GitHub Desktop.
Save aheckmann/1237759 to your computer and use it in GitHub Desktop.
var db = start();
var schema = new Schema({ s: [String] });
var S = db.model('arrayWithUndefined', schema);
var s = new S({ s: ['hi', undefined] }); // no error
console.error(s.s); // []
console.error(s._saveError.message); // Cast to non_object_property_load failed for value "hi,"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment