How can I create the array of strings in Keystone.js Database ODM? I have to create new model with single field and make a many:true
relationship with him only?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With