I am facing error in my vite+react project i am using appwrite as a backend service

While running the mega blog it will not show all post and while submit the post with feature image in add post it will not show after clicking the submit button done or not create post error AppwriteException: Invalid document structure: Missing required attribute “Content”
at Client. (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=421ef251:419:17)
at Generator.next ()
at fulfilled (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=421ef251:13:24) POST https://cloud.appwrite.io/v1/databases/66c85d3d0015dd4ee29f/collections/66c85d85000883f8237d/documents 400 (Bad Request)
(anonymous) @ appwrite.js?v=421ef251:410
(anonymous) @ appwrite.js?v=421ef251:28
__awaiter @ appwrite.js?v=421ef251:10
call @ appwrite.js?v=421ef251:369
(anonymous) @ appwrite.js?v=421ef251:2239
(anonymous) @ appwrite.js?v=421ef251:28
__awaiter @ appwrite.js?v=421ef251:10
createDocument @ appwrite.js?v=421ef251:2214
createPost @ data.js:23
submit @ PostForm.jsx:50
await in submit
(anonymous) @ react-hook-form.js?v=421ef251:1638
await in (anonymous)
callCallback2 @ chunk-PBXWVHXV.js?v=421ef251:3674
invokeGuardedCallbackDev @ chunk-PBXWVHXV.js?v=421ef251:3699
invokeGuardedCallback @ chunk-PBXWVHXV.js?v=421ef251:3733
invokeGuardedCallbackAndCatchFirstError @ chunk-PBXWVHXV.js?v=421ef251:3736
executeDispatch @ chunk-PBXWVHXV.js?v=421ef251:7014
processDispatchQueueItemsInOrder @ chunk-PBXWVHXV.js?v=421ef251:7034
processDispatchQueue @ chunk-PBXWVHXV.js?v=421ef251:7043
dispatchEventsForPlugins @ chunk-PBXWVHXV.js?v=421ef251:7051
(anonymous) @ chunk-PBXWVHXV.js?v=421ef251:7174
batchedUpdates$1 @ chunk-PBXWVHXV.js?v=421ef251:18913
batchedUpdates @ chunk-PBXWVHXV.js?v=421ef251:3579
dispatchEventForPluginEventSystem @ chunk-PBXWVHXV.js?v=421ef251:7173
dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay @ chunk-PBXWVHXV.js?v=421ef251:5478
dispatchEvent @ chunk-PBXWVHXV.js?v=421ef251:5472
dispatchDiscreteEvent @ chunk-PBXWVHXV.js?v=421ef251:5449
Show 24 more frames

We have to see your code. Probably would also need to know what the collection looks like.

I don’t know Appwrite, I assume the createDocument call is missing an attribute in the collection, or vice versa. All I can suggest is you read the docs, they also have a Discord.

They have a React CRUD example repo as well.

https://github.com/appwrite/demos-for-react/tree/master/example-crud