Assistance with Next.js function
Budget: $25 – $50 USD
I have a Next.js application running on a MERN stack and I am trying to write an onClick function with multiple variables to take into consideration:
- The input props have a number of line items, each of which have a supplier
- I want to loop through the array of line items per distinct supplier and pick out those which match to add to a new line items array
- Then I want to create one document per distinct supplier in the Mongdb via axios and Next.js API call
- The input props have a number of line items, each of which have a supplier
- I want to loop through the array of line items per distinct supplier and pick out those which match to add to a new line items array
- Then I want to create one document per distinct supplier in the Mongdb via axios and Next.js API call