-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: SRID expected to be either a number or an Integer object but was: undefined #83
Comments
I will need to check history but I thought point type in Neo4j was supported. This might be a regression. In the meantime you can do what this query does: https://github.com/liberation-data/drivine-inspiration/blob/master/src/movies/moviesForActor-NEO4J.cypher And unpack the point type into an object with two values, eg:
If you're interested in sending a PR the code where transformation is done is here: https://github.com/liberation-data/drivine/blob/master/src/mapper/Neo4jResultMapper.ts ^-- Hmm, yes indeed we can see point should be supported around line 27. Are you doing a read or a write? |
@jasperblues thanks for the tip on unpack point. FYI: the error is gone when I deleted :
It's a read query. Thanks again ! |
So the desired behavior would be to get some platform agnostic instance of By that I mean, instead of Let me also check if any test-cases use the point type. I suspect unfortunately not |
Did you get this solved @jclappiway ? |
I used your solution : unpacking the point manually. |
Yes pls, if you are happy to @jclappiway !! |
Hello,
I'm having an issue on neo4j spatial point with
.transform(XEntity)
Error: SRID expected to be either a number or an Integer object but was: undefined
DEBUG Point { srid: Integer { low: 4326, high: 0 }, x: 50.47511, y: 3.23385, z: undefined }
The text was updated successfully, but these errors were encountered: