Rank 4: Virtual Machine
I want to store different types of user input from different components of my project like in signup component I want to store username,email and in another component I want to store different types of data
Votes
1
Replies
24
Participants
Unknown
Messages
25
Rank 4: Virtual Machine
I want to store different types of user input from different components of my project like in signup component I want to store username,email and in another component I want to store different types of data
Rank 4: Virtual Machine
@Binyamin could you please help me
just create a Collection with the data you want to store
Rank 4: Virtual Machine
I want to store username,email,some user inputs of different components in my document
Rank 4: Virtual Machine
Iam able to store username and email and If iam trying to store user input from different components iam unable to do that
Rank 2: Process
Why are you unable to do that?
Rank 2: Process
Provide more context please
Rank 4: Virtual Machine
In signup component I have created database
Rank 4: Virtual Machine
And in another component iam unable to do that
Rank 2: Process
Share code please
Rank 2: Process
And why are u unable to do that, are you getting any errors?
Rank 2: Process
Please be a bit more clear
Rank 4: Virtual Machine
this is my signup component
Rank 4: Virtual Machine
this works good but when i do this same thing for another compoents to store different user input iam unable to do that
what's the error that gets thrown?
Rank 4: Virtual Machine
AppwriteException: Invalid document structure: Missing required attribute
Rank 4: Virtual Machine
Rank 4: Virtual Machine
If color and side are marked as required and you do not pass that info while creating the document, you will probably receive Missing required attribute exception!
Rank 4: Virtual Machine
Either mark them as not required or pass that data when creating the doc.
Rank 4: Virtual Machine
when i marked as not required iam not getting AppwriteException: Invalid document structure: Missing required attribute error
exactly
if you've marked it as required, you need to give it a value when creating a document
Rank 4: Virtual Machine
not storing the value of color and side in appwrite
Rank 4: Virtual Machine
or you can provide a default value as well.
Rank 4: Virtual Machine
was storing username and email but not storing color and side