Some things to try:
1) In order to treat a contact as an embedded document in venue you need to
export the contact schema from contact model, not the model
2) In venue model you would specify an array of embedded contact documents
using "contacts: [contactSchema]"


-- Daniel R. <[email protected]> [http://danielr.neophi.com/]


On Wed, Jan 30, 2013 at 10:08 PM, Ryan Kelly <[email protected]>wrote:

> Here is the sample payload I'm passing in:
>
> {
>   "name":"my venue",
>   "description":"my description",
>   "isActive":true,
>   "siteUrl":"http://google.com";,
>   "market":"resort",
>   "state":"CO",
>   "contacts": [
>         {
>             "firstName": "Mike",
>             "lastName": "Ditka",
>           "email": "[email protected]"
>         },
>         {
>             "firstName": "Dick",
>             "lastName": "Butkus",
>           "email": "[email protected]"
>         }
>     ],
>   "privateNotes":"my notes",
>   "comments":"my comments",
>   "coverImage":"default.png",
>   "images":"myImage.png"
> }
>
> --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to