Web Developer
Before adding any item to the database I want to check whether the item with sam itemId and userId exists or not
Votes
0
Replies
19
Participants
Unknown
Messages
20
Web Developer
Before adding any item to the database I want to check whether the item with sam itemId and userId exists or not
Rank 4: Virtual Machine
Am I missing something?
What is the question you have? Quickly looking over it, it looks fine
Web Developer
When I click on add to cart button it return appwrite server error
Web Developer
Rank 4: Virtual Machine
Server error means something went wrong in the request, most likely the POST request. You added console.log, you should show them too.
Web Developer
Web Developer
I am getting to this error
Web Developer
This is my nextjs file
Web Developer
Web Developer
This is my appwrite file
Web Developer
Rank 4: Virtual Machine
I feel like you have slight understanding of JS, which is not a problem, but you are showing images which you cannot do much with. This is for getting the items, but not sending
Web Developer
I am getting error when I use Query or while creating that condition
Rank 4: Virtual Machine
Do you have attributes?
Web Developer
you mean in database
Rank 4: Virtual Machine
also what's after this?
Rank 4: Virtual Machine
No, in your database you have a collection, in the collection you have attributes
Web Developer
createDocument work perfectly
Web Developer
Rank 4: Virtual Machine