Question

How to make an field type array?

  • 27 January 2021
  • 2 replies
  • 80 views

Userlevel 1

on line 142 scehma is not allowed ,

err msg:is not of type string,

how to allow array type fieldd


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Userlevel 7
Badge +12

Hi @pushkar123 - I'm not sure why you're getting that error but I've noticed that the children array contains another array wrapping the category field. Make sure to flatten the children array before trying again.

Userlevel 7
Badge +9

@pushkar123 just wanted to check in here to see if @ikbelkirasan’s suggestion worked for you. Let us know if you’re still running into trouble - we want to make sure you’re good to go here!