Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Keystone.js データベース ODM で文字列の配列を作成するにはどうすればよいですか? 単一のフィールドで新しいモデルを作成しmany:true、彼とのみ関係を作成する必要がありますか?
many:true
これにはフィールド タイプがあります。
Things.add({ manyStrings: { type: Types.TextArray } });
と呼ばれる数値用の同様のフィールドがありますTypes.NumberArray。
Types.NumberArray
より洗練されたものが必要な場合は、別のリストを作成してRelationshipフィールドを使用することをお勧めします。
Relationship