skip to Main Content

I have my data structured as [{type: "advanced", price: 5000}]. The schema type is set to type: []. When I query the data in my browser (using react) I get an array but the objects like ['[object Object],[object Object]']. How can I save this data and retrieve it correctly

2

Answers


  1. Chosen as BEST ANSWER

    JSON.stringify(myobject) when appending it to the form before sending


  2. Try this as the schema:

    type:[{type:String , price:Number }]
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search