That may be a good solution, because you could not treat such a path (if it
were to have null in it somewhere) in a normal fashion anyway.

2011/11/15 Andres Taylor <andres.tay...@neotechnology.com>

> I just realized the obviousness of the truth.
>
> The optional bit is viral - it spreads out if it can. So, a path pointing
> to an optional relationship, is it self optional. Just like nodes hanging
> from an optional relationship are also optional.
> So, if the path happens to have any null parts, the whole path is null.
>
> Makes sense?
>
> Andrés
>
> On Sun, Nov 13, 2011 at 1:11 PM, Mattias Persson
> <matt...@neotechnology.com>wrote:
>
> > A Path with null in it doesn't make much sense to me. I'd prefer b) also.
> >
> > Den lördagen den 12:e november 2011 skrev Andres Taylor<
> > andres.tay...@neotechnology.com>:
> > > On Sat, Nov 12, 2011 at 3:02 PM, D. Frej <dieter_f...@gmx.net> wrote:
> > >
> > >> to understand the question correctly: is it something like
> > >> (a)-[:REL_TYPE*0..1]->(b)
> > >>
> > >
> > > Sorry for not being clearer...
> > >
> > > No, that pattern is safe - it will never contain a null. The optional
> > > relationships have a question mark in them, like this:
> > >
> > >  (a)-[?:REL_TYPE]->(b)
> > >
> > > Andrés
> > > _______________________________________________
> > > Neo4j mailing list
> > > User@lists.neo4j.org
> > > https://lists.neo4j.org/mailman/listinfo/user
> > >
> >
> > --
> > Mattias Persson, [matt...@neotechnology.com]
> > Hacker, Neo Technology
> > www.neotechnology.com
> > _______________________________________________
> > Neo4j mailing list
> > User@lists.neo4j.org
> > https://lists.neo4j.org/mailman/listinfo/user
> >
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to