I have the following code:
fwColl.update(
["_id":BsonObjectID.fromString(fwID)],
["$push":[
"elections":[
"id":propositionID,
"propName":propositionPage["proposal"].get!string,
"vote":resp
]
]
]
);
which return the error:
source/synd/voting.d(290): Error: incompatible types for ((propositionID) : (resp)): 'string' and 'bool'
On the MongoDB website, I see that they mix different types within an array (e.g. one value is a string, the other an int). Is there a special way to do this in Vibe that I haven't noticed or am I just going about it completely wrong.