I am trying to load some GeoJson data into the built in geo data fields, but it doesn’t seem to match up since there are no latitude And longitude Keys in the arrays.
The 2nd object in this image is what I’m trying to load in.
Here is the error when trying to load that bbox field into a [Point] field.
{
errors: [
{
message: 'Expected type PointRef, found -104.057879.',
locations: [Array]
},
{
message: 'Expected type PointRef, found 42.479635.',
locations: [Array]
},
{
message: 'Expected type PointRef, found -96.436589.',
locations: [Array]
},
{
message: 'Expected type PointRef, found 45.94545.',
locations: [Array]
}
]
}
Just wondering if there is a way to make this work without writing a special function to convert it.
But as I was reminded today, I am very rusty and a newb in my DQL loosely typed queries and mutations. I still rely heavily on the strongly typed GraphQL API. So… This can be done from GraphQL by transforming the data.