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
0
votes
1 answer

can't set relationship with neomodel in python

https://github.com/neo4j-contrib/neomodel/blob/5bc4213598233172526cd3c59fdfed5745a80130/doc/source/batch.rst#get_or_create I'm running the following code: class Dog(StructuredNode): name = StringProperty(required=True) owner =…
0
votes
0 answers

Dynamically create a class inherited from neomodel.StructuredNode

Python's library neomodel provides the ability to define a relationship with a class that hasn't been defined yet, by using its name as string, which works fine as follows: from neomodel import StructuredNode, RelationshipTo # if Foo is already…
0
votes
1 answer

Getting - Can't install traversal 'has' exists on NodeSet, error when matching Node

I'm using Django with Neomodel and django_neomodel to connect to AuraDB and fetch data. In my views I'm doing: def homePage(request): name = request.user.last_name + ', ' + request.user.first_name my_person_node =…
0
votes
1 answer

Errors during configuration of the neo4j django-neomodel

I'm trying to do a simple project in Django using the Neo4j database. I've installed a django-neomodel library, set the settings as follows: import os from neomodel import config db_username = os.environ.get('NEO4J_USERNAME') db_password =…
Sevy
  • 164
  • 16
0
votes
0 answers

Writing complex query in neomodel

How to write complex queries involving search in multiple Node types. for example following query returns ids of products usually bought together. match (n:Product)-[:CONTAIN]-(:Order)-[:CONTAIN]-(p2:Product) where ID(n)={product_id} return ID(p2),…
Learner
  • 81
  • 1
  • 5
0
votes
0 answers

Neomodel: specify neo4j database name in connection string

In the neomodel documentation it's possible to specify the neo4j connection string using the following statement: from neomodel import config config.DATABASE_URL = 'bolt://neo4j:neo4j@localhost:7687' On neo4j 4.1, I am using multiple databases…
nolio
  • 81
  • 6
0
votes
1 answer

Unpacking List of Dicts for function *args

I am trying to unpack a list of dictionaries and use these as args for a function that creates nodes on a neo4j database based on these dictionaries. The error that occurs is ,that instead of using each dict for a new node, the function tries to…
Blob
  • 1
0
votes
2 answers

django_neomodel fails to connect to a running database while neomodel works

I made these setting on settings.py, as directed on Getting Started: NEOMODEL_NEO4J_BOLT_URL = os.environ.get('NEO4J_BOLT_URL', 'bolt://neo4j:password@localhost:7687') INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', …
HuLu ViCa
  • 5,077
  • 10
  • 43
  • 93
0
votes
2 answers

django_neomodel can't find attribute MAX_POOL_SIZE

I am trying to set my first Django project using neo4j as database and neomodel as OGM, so I am following this directions. Nevertheless, when a try to start Django server, I get this error: Exception in thread django-main-thread: Traceback (most…
HuLu ViCa
  • 5,077
  • 10
  • 43
  • 93
0
votes
2 answers

neomodel unable to match record

i am using neomodel==4.0.1 on python 3.8 i have structurednode name store with integerproperty code when i search store with get method it is not able to find any match StoreNodeDoesNotExist ----> 1…
Learner
  • 81
  • 1
  • 5
0
votes
1 answer

Docker-compose: db connection from web container to neo4j container using bolt

I'm working on django project with neo4j db using neomodel and django-neomodel. I'm trying to containerize it using docker-compose. when I build the images everything seems fine, but any connection from web container to db using bolt is refused.…
0
votes
2 answers

Cannot access Neo4j container with Neomodel

I have 2 different containers running with docker-compose. Here is my docker-compose.yml: version: '3' services: #Create backend container backend: build: ./backend # path to Dockerfile ports: # Port binding to host from…
SDatta
  • 5
  • 1
0
votes
1 answer

Connecting to AWS PostgreSQL from Neomodel Django

I am trying to implement neomodel package in my Django code which is designed as a back-end service. The problem I am facing is that I already established a PostgreSQL connection from Django but I am facing difficulty in in using the same database…
0
votes
1 answer

How to get all realtionships between two nodes using neomodel without using cypherquery()

I have a node class defined by - class Person(StructuredNode): attr = StringProperty(unique_index=True) name = StringProperty(unique_index=True) Provided that I have fetched two Person Nodesets using nodes.filter(), Is there a way to fetch…
NaN
  • 1,012
  • 3
  • 13
  • 25
0
votes
0 answers

Django AttributeError: type object 'Book' has no attribute '_default_manager'

I created a simple Django Webapp using django-neomodel integration. When trying to create a new book, at "http://localhost:8000/book/new" and after submitting it, I see the error as shown in the traceback. I have searched online, and in most of the…