-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Creating/Reading a matrix is broken #13936
Comments
github-actions
bot
added
pending-triage
Issue is pending triage
pending-maintainer-response
Issue is pending a response from the Amplify team.
labels
Oct 17, 2024
Hi @Aldo-Garza 👋 thanks for raising this issue. I was able to reproduce consistently with the provided schema. The I've marked this as a bug for the team to investigate further. |
github-actions
bot
removed
the
pending-maintainer-response
Issue is pending a response from the Amplify team.
label
Oct 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Before opening, please confirm:
JavaScript Framework
Next.js
Amplify APIs
GraphQL API
Amplify Version
v6
Amplify Categories
No response
Backend
Amplify Gen 2
Environment information
Describe the bug
The model is described as
MatrixTest: a.model({ values: a.string().required().array().required().array().required() }).authorization((allow) =>[allow.publicApiKey()]),
Which represents a string matrix
The following server actions are used to insert and read a matrix
The following snippet is used to read and create such entity
However the returned data does not comply with the expected data type which is string[][], instead it returns string[] (the return
type of the sdk is in fact correct string[][], but the data is not ), causing errors when trying to use the data.
This is the value returned by the sdk
Which must be, note the value part
Expected behavior
Details given on the description
Reproduction steps
Details given on the description
Code Snippet
// Put your code below this line.
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: