We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Running the code like:
sql = `INSERT INTO unit (unit_name, supplier, deleted, "createdAt", "updatedAt", uuid) VALUES (:unit_name, :supplier, :deleted, :createdAt, :updatedAt, :uuid) RETURNING id`; const results = await rdsds.query(sql, dbUnits); console.log('Units:', results); // Logs "Units: { updateResults: [] }"
Two lines are inserted but the return is an empty Array... Am I missing something...?
The text was updated successfully, but these errors were encountered:
I ran a test both using the local-data-api Docker container locally and using the Aurora Serverelss in AWS and they both return:
local-data-api
{ "numberOfRecordsUpdated": 0, "records": [ [ { "stringValue": "123" } ] ] }
From the INSERT with RETURNING id the Serverless API is returning the data but seems it is lost somewhere along the line...
RETURNING id
Sorry, something went wrong.
No branches or pull requests
Running the code like:
Two lines are inserted but the return is an empty Array... Am I missing something...?
The text was updated successfully, but these errors were encountered: