LearnBoost/mongoose — Issue #681: docs embedded in object w/ arbitrary keys?
Author: ordrin
Created: 2012-01-12 16:58:50+00:00
State: open

Is there a way to use embedded docs within a object that doesn't have predetermined keys? i.e. Rather than having a situation like this:

```javascript
var myschema = new mongoose.Schema({
field : { foo: String, bar: String }
});
```

Being able to say something like:

```javascript
var myschema = new mongoose.Schema({
field : { *: String }
});
```

Makes it a little more array like in that way - but the idea is that I don't know the keys in advance, but I'd still like to be able to have an embedded doc.