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
@Binyamin could you please help me
just create a Collection with the data you want to store
I want to store username,email,some user inputs of different components in my document
Iam able to store username and email and If iam trying to store user input from different components iam unable to do that
Why are you unable to do that?
Provide more context please
In signup component I have created database
And in another component iam unable to do that
Share code please
And why are u unable to do that, are you getting any errors?
Please be a bit more clear
this is my signup component
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?
AppwriteException: Invalid document structure: Missing required attribute
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!
Either mark them as not required or pass that data when creating the doc.
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
not storing the value of color and side in appwrite
or you can provide a default value as well.
was storing username and email but not storing color and side
Recommended threads
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...