xxxxxxxxxx
1. show collections; // Display all collections
2. show tables // Display all collections
3. db.getCollectionNames(); // Return array of collection. Example :[ "orders", "system.profile" ]
xxxxxxxxxx
<div className="lg:absolute right-0 lg:w-[200px]">
{form.watch('upload').length > 0 && (
<div className="centralize gap-1 p-2 bg-gray-100 border rounded-xl border-gray-200">
<LucideFileArchive size={18} />
<p className="text-center text-xs whitespace-nowrap">
{/* //truncate the file name if it is too long */}
{form.watch('upload')[0].name.length > 25
? `${form.watch('upload')[0].name.slice(0, 25)}...`
: form.watch('upload')[0].name}
</p>
</div>
)}
</div>