-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Fails to retrieve data with JSON type Postgres #31
Comments
The JSON-type field needs the string in response, not the Object. |
So that means we need to stringify the object once again |
I have some testing base on my fork repo. Like:
But If I use this package in another repo base on Dockerfile, the response is not stringified. Can you reproduce it if you have free time? I provide some steps for you. Easy and quick.
|
@zsnmwy What is the state of your fork? It doesn't look like this library is being maintained and might require significant work with the new |
I'd look into it this weekend |
I change to use this repo - https://github.com/zsnmwy/prisma-data-proxy And I create a guide repo to tell you how to use it. Works with any serverless env. But I did not test with Prisma |
@mbrimmer83 |
Oh wow, I'm gonna test it out this weekend. I'll let you know how it goes. This is awesome. Thanks!! |
Making a request from the client to a table that has a JSON type field throws an error SyntaxError: "[object Object]" is not valid JSON.
Note that a console log at afterMiddleware.ts
below JSON.parse shows the correct data being returned
The text was updated successfully, but these errors were encountered: