How can I create the array of strings in Keystone.js Database ODM? How can I create the array of strings in Keystone.js Database ODM? mongoose mongoose

How can I create the array of strings in Keystone.js Database ODM?


There is a field type for this:

Things.add({  manyStrings: { type: Types.TextArray }});

There is a similar field for numbers called Types.NumberArray.

If you want something more sophisticated, your best bet is creating a separate List and using the Relationship field.