Replies: 3 comments 2 replies
-
I would like to share an old blog with you, which seems quite relevant to your usage of Hasura GraphQL Engine: https://hasura.io/blog/graphql-and-geo-location-on-postgres-using-hasura-562e7bd47a2f/ The blog is a bit dated, but it may help you get unblocked. |
Beta Was this translation helpful? Give feedback.
-
I'm facing the same issue and this is currently working outside of hasura graphiQL on both apollo client and axios for me.
but I'm still not sure querying geometry type data ignoring input type error is the best I can get using hasura edit: this could be a workaround for simple cases at the moment. thanks to gegtik at discord |
Beta Was this translation helpful? Give feedback.
-
@manasag This input error surfaces on the console, but the query gets executed successfully. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to query a
Sellers
tablewhere
the location of the seller is withinx
m from location provided.This is how my query looks like:
The
location
variable is:{"location": {"type": "Point" ,"coordinates": [13.191394465831182,32.88723208673258]}}
.Using hasura's graphiql, when I write this variable hasura gives me a type error saying "Expecting value of type geography", when it is already so. If I make the query hasura, it gives me the desired results.
My problems lie here:
1- The field is of type
geometry
notgeography
(as hasura demands), and if I change the field type togeography
, then hasura demandsgeography
.2- The query runs ok in graphiql but if I call it using any graphql client, it fails and gives me a "query error"... other queries work ok but when I attempt for the location querying it fails outside of graphiql.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions