[Developers] Getting Spouses

Ketan Anjaria fire at kidbombay.com
Wed Sep 12 19:24:46 UTC 2007


Ahh, that worked like a charm.

Ketan Anjaria
fire at kidbombay.com
www.kidbombay.com
415.260.8742
f. 415.358.4278

On Sep 12, 2007, at 12:14 PM, John Giannandrea wrote:

>
> Ketan Anjaria wrote:
>> But the result is not what I expect, I am getting
>> /people/person/spouse_s":[{
>>       "/common/topic/image":[],
>>       "id":"#9202a8c04000641f8000000004206eef",
>>       "name":null
>>     }],
>> For a spouse. Why is the name null?
>
> because spouse is a compound value object which represents the  
> marriage.
> http://www.mjtemplate.org/examples/schemas/type.html?id=/people/ 
> marriage
>
> You need something like this:
>
>     "/people/person/spouse_s":[{
>       "spouse":[{
>         "/common/topic/image":[{
>           "guid":null,
>           "limit":1,
>           "optional":true
>         }],
>         "id":null,
>         "name":null,
>         "optional":true
>       }]
>     }],
>
> Also, spouse is quite unusual since it is symmetrical, you will get  
> both parties back and have to skip over the one that you started  
> with (Danny).
>
> -jg
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20070912/34d53db6/attachment.htm 


More information about the Developers mailing list