Hello Nigel. I'm trying to make the example and either i have it as "from 
py2neo.ext.ogm import Store" or "from flask.ext.neo4j import Neo4j" it 
throws me the exception 
"from py2neo.ext.ogm import Store
ImportError: No module named ogm "
Do you know how to use the ogm extension? i'm working with python2.7 and 
py2neo

Τη Δευτέρα, 15 Ιουνίου 2015 - 4:01:05 μ.μ. UTC+3, ο χρήστης Nigel Small 
έγραψε:
>
> Important note: The py2neo OGM module is old and works only with legacy 
> indexes, not schema indexes or any other Neo4j 2.0 concepts. Therefore, if 
> "of type" refers to labels, that's why.
>
> You have only one OGM action in the code you've shared and this is 
> *store.save_unique*. If you have an entry in your legacy index following 
> execution of this line then it has done everything it should do. If you 
> want a different action to take place, please clarify what that is.
>
> Regards
> Nigel
>
> On 15 June 2015 at 13:51, Sumit Gupta <sumi...@gmail.com <javascript:>> 
> wrote:
>
>> "object is not of type fruit" - What do you mean by that? Are you 
>> comparing this with ORM where you define your own Entities and every entity 
>> has correspnding tables?
>>
>> if yes, then please do not do that. Neo4j provides only Object Type = 
>> "Node", "Relationship", Label, Property/ Attribute.
>>
>> Thanks,
>> Sumit 
>>
>> On Sunday, 14 June 2015 23:33:52 UTC+5:30, Shekar Tippur wrote:
>>
>>>
>>>
>>> Hello,
>>>
>>> I am trying to use py2neo (http://py2neo.org/2.0/ext/ogm.html).
>>> I am having trouble looking up a node.
>>>
>>> I already have a node stored. Fruit("mango")
>>>
>>> I am trying to add a User("Shekar") to like Fruit("mango")
>>>
>>> I am able to add 2 nodes but I am having trouble creating relationship.
>>>
>>> What is the best way to get a node given the fruit name, desrialize it 
>>> to something that can be a added as a relation?
>>>
>>> - Shekar
>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Neo4j" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to neo4j+un...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to