#How to set many elements in array of mongoose schema
1 messages · Page 1 of 1 (latest)
i tried finding here but found nothing
yes
you would need a prepare query to set multiple elements at once
else a for loop
generally in SQL
can we just set an array like staff: ['1', '2', etc]