const menusNames = ['mainMenu', 'subMenu', 'productMenu', 'rangeMenu', 'newMenu']; export async function getMenus() { const collectionsNames = menusNames; const promises = []; collectionsNames.forEach(collection => { promises.push(wixData.query(collection).find()); }); const resolvedData = await Promise.all(promises); const menusData = { 'mainMenu': resolvedData[0].items, 'subMenu': resolvedData[1].items, 'productMenu': resolvedData[2].items, 'rangeMenu': resolvedData[3].items, 'newMenu': resolvedData[4].items }; return { menusNames, menusData }; }
top of page

Contact Us

Please fill out the form and we will be in touch!

Religious Textbooks

Please fill out the form & we will be in touch!

Thanks for submitting!

bottom of page