neo4j-contrib / neomodel

An Object Graph Mapper (OGM) for the Neo4j graph database.
https://neomodel.readthedocs.io
MIT License
936 stars 231 forks source link

Missing import in contrib __init__ #785

Closed tobiascaliskan closed 3 months ago

tobiascaliskan commented 6 months ago

Expected Behavior (Mandatory)

Being able to import the Spatial_properties within the folder contrib.

Actual Behavior (Mandatory)

Currently only the SemiStructuredNode can be imported.

How to Reproduce the Problem

  1. Create a new file
  2. Try to import the PointProperty using **from neomodel.contrib.spatial_properties import PointProperty"

I managed to solve the issue by adding the import within the init.py file for the properties in the contrib.init.py file

Specifications (Mandatory)

Currently used versions 5.2.1

mariusconjeaud commented 4 months ago

This works for me : from neomodel.contrib.spatial_properties import PointProperty

So do you mean you would want to do : from neomodel import PointProperty ? Or from neomodel.contrib import PointProperty?