Replies: 2 comments
-
Please create an issue with a reproduction on CodeSandbox. Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
-
Here you go: https://codesandbox.io/p/devbox/zm9lkl run A basic openapi.json spec is in there, plus the graphql file generated with It's hitting httpbin just for the demo to hit something (and 404ing obviously), but you can see in the output the issue with the querystring it's setting. Query: query MyQuery {
departures_list(start_date__gt: "2025-01-01") {
count
next
previous
results
}
} Result {
"errors": [
{
"message": "Upstream HTTP Error: 404, Could not invoke operation GET /api/v4/departures/",
"path": [
"departures_list"
],
"extensions": {
"code": "DOWNSTREAM_SERVICE_ERROR",
"serviceName": "Seekr",
"request": {
"url": "https://httpbin.org/get/api/v4/departures/?start_date__gt=2025-01-01T00%3A00%3A00.000Z",
"method": "GET"
},
"response": {
"status": 404,
"statusText": "NOT FOUND",
"headers": {
"date": "Thu, 08 May 2025 06:52:43 GMT",
"content-type": "text/html",
"content-length": "233",
"connection": "keep-alive",
"server": "gunicorn/19.9.0",
"access-control-allow-origin": "*",
"access-control-allow-credentials": "true"
},
"body": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
}
}
}
],
"data": {
"departures_list": null
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an openAPI schema that includes some parameters for a list endpoint like so:
It is expecting things like
/path/?start_date__gt=2025-05-01
I have used this schema in Mesh to create a GraphQL layer on top of my Rest API. However, When I query with something like:
Hive seems to convert my date string into a JS date, and then convert that back to a string
The request then looks like this:
/api/v4/departures/?product=8226&start_date__gt=2025-01-01T00%3A00%3A00.000Z
How can I stop this happening?
(I have tried with query($d:Date!) and other ways to send my query to no avail)
Beta Was this translation helpful? Give feedback.
All reactions