[Developers] CVT query question

John Giannandrea jg at metaweb.com
Sun Sep 2 05:20:33 UTC 2007


Mike Love wrote:
> I wanted to make a symmetrical analog of the influenced /  
> influenced_by relationship, and had to make it a CVT to get this  
> result.

Shooting from the hip I would suggest that 'peer' could be a property  
on influence_node rather than a new type.

> This query below works, although it gives both names in each  
> relationship and the whole query comes back empty if the person had  
> no peers:

You need to expand it further with an optional clause.

     "peers":[{
       "peers":[{
         "name":null,
         "optional":true
       }]

-jg





More information about the Developers mailing list