-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Adding array of geo gives "Input for predicate example.Loc of type scalar is uid" #2482
Comments
Here's a runnable example.
This gives: pc error: code = Unknown desc = Input for predicate example.Loc of type scalar is uid Adding the array of geopoints like this:
does add them as a list of points. |
I tracked the problem down. Handling the []interface{} case in nquads_from_json.go doesn't check for geotypes and assumes all non basic types should be handled as uid. I'll write a fix for this and submit a pull request if that's ok? |
…rmodeinc#2485) * Correctly handle list of type geo in json (hypermodeinc#2482) * Add handleGeoType function for handling a geotype or list of geotype (hypermodeinc#2482)
1.06
When using:
And mapping:
I get Input for predicate example.Loc of type scalar is uid
When using geo as a list the SetJson parser seems to view the geojson types as nodes #instead of scalars.
The text was updated successfully, but these errors were encountered: