What I’ve got in Database:
What I tried:
get data of file_1 and make a Moralis.File get data of file_2 and make a Moralis.File get data of file_3 and make a Moralis.File await file_1.saveIPFS() await file_2.saveIPFS() await file_3.saveIPFS() class.set("1st_file", file_1) class.set("2nd_file", file_2) class.set("3rd_file", file_3) class.save()
It works well at a new created Test_Class (temporary table for a test)
I have checked my code several times, all File objects gets written in IPFS,
and together with this fact,
Also gets written in Test_Class (test table) in database very well.
Even the First File Object is accepted, while the file_2’s turn comes,
or if I remove file_2 from the queue, this time problem comes for the file_3,
I can’t write in that “previously-created” Class_of_Items Table
2022-04-04T12:00:48.822Z - Error: schema mismatch for Class_of_Items.2nd_file; expected File but got String at SchemaController.enforceFieldExists (/moralis-server/lib/Controllers/SchemaController.js:1250:15) at SchemaController.validateObject (/moralis-server/lib/Controllers/SchemaController.js:1391:28) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5)
- Class_of_Items has already got “1st_file” field and doesn’t throw error while writing in.
- Class_of_Items has files already written in file_1 column.
- The problem persists only for the second file (file_2 in the example) or the third one.
Again, all the file objects gets written in IPFS without a problem, I got their hashes, but only when writing in the Class_of_Items (which was previously created) table.
Makes me think, a table which has 24 columns has limits of File Objects amount…?