Techiio-author
Started by Swarnalata RoydebJun 3, 2022

Open
How to make a node js model for array?

3 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 3 VIEWES SHARE

I mean if we sent data in a array from frontend than what is the structure of model for array..

CartSchema.....

{

how we make a model for array

}

anyone help me!

1 Replies

Techiio-commentatorSoumya Parida replied 2 months ago0 likes0 dislikes

we can define like this in an model.

interests: [{ type: Array}]

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance