DEV Community

Rawson
Rawson

Posted on

Keystone V5. Easy question. Help!!!!

Hello, I am looking for how to create a field to select 2/3 options and that one of them remains in the same mongodb collection (only one list). I don't want to do it with external lists but inside the code write the options. This should be very easy, but I don't condone it working for me. Who can help me ?? Thank you in advance.

Oldest comments (1)

Collapse
 
rawsonbpo profile image
Rawson

Hello again, I solved it like this in case someone is missing:
delegacion: {
type: Select,
options: 'Colombia, Peru, Madrid, Galicia',
dataType: 'string'
},
This is inside the list and: const { Select } = require('@keystonejs/fields'); In the top of the list