Closed ghost closed 4 years ago
The contents of the select
component for a relationship use the labelField
of the related list. By default it will look for a field called name
. If this doesn't exist it will use the id
field, which is what you are seeing. You can configure the field used with the labelField
config option. If you would like it to use the postition
field you can do:
module.exports = {
fields: { position: { type: Text, ... } },
labelField: "position",
};
Question about Keystone
GitHub Issues are reserved for Bug reports and Feature requests.
The best place to get a question answered is sign-up to our Slack: http://community.keystonejs.com/ as is show above,I init when the project start,but I use the RelationShip,in the adminUI,Only show id like 1,2,3