Questions tagged [neomodel]

neomodel is a python Object Graph Mapper (OGM) for the neo4j graph database.

neomodel is an Object Graph Mapper (OGM) for the neo4j graph database, built on the awesome neo4j_driver. It is written in python.

97 questions
7
votes
3 answers

Cannot connect to neo4j database on Docker container

I'm using two docker containers on one host machine. The first one is based on ordinary neo4j:2.3 image with some forwarded ports (7474). The second one is python:2.7-based container. Using curl I can access db from both host machine level and…
kboom
  • 2,279
  • 3
  • 28
  • 43
7
votes
4 answers

Using multiple labels with Neomodel

I would like to know if there's a way to associate different labels to a class with NeoModel. If not, what module can allow me to do this? My understanding is that when using the following class declaration, "Person" is a label. class…
bsuire
  • 1,383
  • 2
  • 18
  • 27
6
votes
1 answer

Is it possible to connect to AuraDB with neomodel?

Is it possible to connect to AuraDB with neomodel? AuraDB connection URI is like neo4j+s://xxxx.databases.neo4j.io. This is not contained user/password information. However, connection config of neomodel is bolt and it is contained user/password…
eburairu
  • 63
  • 4
5
votes
1 answer

neomodel giving Attribute error on save

I am running the following config for neo4j: neo4j - 3.0.0 py2neo - 2.0.8 neomodel - 2.0.2 Finally, the code I try to run is: class User(neomodel.StructuredNode): user_id = neomodel.IntegerProperty(unique_index=True, required=True) name =…
Sourabh Dev
  • 743
  • 11
  • 22
4
votes
1 answer

Does Neomodel support modelform? If so, why isn't it picking up default meta attributes / how do I set them?

I am getting AttributeError: type object 'Person' has no attribute '_meta' when trying to use Neomodel with Django's ModelForm. I'm new to using neomodel and do not know if Neomodel supports modelforms, but I've searched the docs and here for…
the4thv
  • 581
  • 2
  • 13
4
votes
1 answer

neomodel: how to share index across StructuredNode Objects

how is it possible in neomodel to share a unique index across node objects, without instantiating separate objects to just hold the indexed data? I'd like to find the object based on a index query, e.g like this: ... mynode =…
bebbi
  • 2,489
  • 3
  • 22
  • 36
3
votes
0 answers

How to integrate Neo4J with GraphQL in Django?

Recently I wanted to try something else besides API and DB for backend. I'd say a graph stack for Django. I choose GraphQL because of its popularity and as database I wanted to try something else that is not working with tables, rows and columns. I…
nrgx
  • 325
  • 3
  • 13
3
votes
1 answer

Neo4J with NeoModel: How to speed up graph creation?

I am trying to use Neo4J with neomodel to represent some graph relationships. However I have performance issues when I am trying to construct a graph with millions of nodes and relationships. When I have graph with 10k nodes and 30k relationships…
Martin Majlis
  • 363
  • 2
  • 10
3
votes
3 answers

Relationship to multiple types (polymorphism) in neomodel

Since 2014, there was an issue that relationship to multiple object types is not available: https://github.com/robinedwards/neomodel/issues/126 It's now 2016, and still I'm not aware of any solution regarding this critical issue. Example for…
Joe Down
  • 31
  • 3
3
votes
1 answer

Neomodel relationships

I am new to Neo4J and graph databases in general and so I have some questions about structuring relationships. I am using Neomodel for this project. I have two separate data model files (Note that I am using nodes.py instead of models.py as I…
Joe Fusaro
  • 847
  • 2
  • 11
  • 23
2
votes
2 answers

Retrieve the Relationship object in Neomodel

I am using Neomodel and Python for my project. I have a number of nodes defined and am storing relevant information on the relationships between them. However I can't seem to find a mechanism for retrieving the relationship object itself to be able…
2
votes
0 answers

Attempting to deflate property 'date' on of class 'Schedule': datetime.date object expected, got string

I'm trying to insert a new record with this mutation, however, I hit this error as below: Attempting to deflate property 'start_date' on of class 'Schedule': datetime.date object expected, got '2020-04-01' My start_date is defined as…
xion
  • 1,209
  • 11
  • 17
2
votes
1 answer

Get an error when trying to connect to neo4j database from Django

I am following [this tutorial][1] to start with Django and neo4j, but as the first import is reached, I get this error: Traceback (most recent call last): File "manage.py", line 15, in execute_from_command_line(sys.argv) File…
HuLu ViCa
  • 5,077
  • 10
  • 43
  • 93
2
votes
1 answer

Can django_neomodel be used with the built in Django authentication system?

I'm wondering what the best approach is to store user authentication data in a neo4j database with django using the inbuilt auth system. Has anybody got any experience of doing so? I'm imagining that it has something to do with subclassing the…
Jamie
  • 33
  • 3
2
votes
1 answer

Neomodel cypher query missing positional argument

I'm trying to query my Employee model with .cypher within my Django view. I've used this query elsewhere, so I know that part works. query_string = "MATCH (n)-[r:REPORTS_TO|BRANCH_OF|OVERSEEN_BY]->() RETURN n, r" query_results = Employee.cypher( …
Kermit
  • 4,922
  • 4
  • 42
  • 74
1
2 3 4 5 6 7