[Developers] Reflection problem

John Giannandrea jg at metaweb.com
Thu May 28 23:30:23 UTC 2009


Chris Fitzpatrick wrote:
> Like:
>> [{
>> "/type/reflect/any_reverse": [{
>>   "id":       null,
>>   "link": {
>>     "master_property": {
>>       "reverse_property": {
>>         "id": "/people/person/employment_history"
>>       }
>>     }
>>   },
>>   "/education/education/institution" : null,:
>>   "optional": true
>> }],
>> "id":   "/en/edward_feigenbaum",
>> "name": null
>> }]

You can also get all those CVTs by redangling from the links.

[{
   "type": "/type/link",
   "target": {
     "id": "/en/edward_feigenbaum"
   },
   "source": {
     "id": null
   },
   "master_property": {
     "id": "/business/employment_tenure/person"
   }
}]

-jg




More information about the Developers mailing list