Skip to content

How to define field schema while the field type is Array<Object>? #205

Answered by mobsense
ATaiIsHere asked this question in Q&A
Discussion options

You must be logged in to vote

Nested schemas must be objects. Cannot (yet) be arrays.

At the moment, just define as:

dataList: { type: Array }

You can't yet have nested schema or types for the data list elements. We're working on this.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ATaiIsHere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants