I'm new to KeystoneJS, and I'm having an issue : I'm trying to use createItem() on a relatioship field, after importing a CSV. I turn the CSV's data into a JSON object thanks to csvtojson library, and then creating an Item based on my JSONObject.
Here is my relationship declaration :
project: { type: Types.Relationship, ref: 'Project' },
And here is my project declaration :
name: { type: Types.Text, required: true, index: true, refPath: 'project' }
But when I'm using the createItem() method, here what I have as an error message :
message: 'Relationship Info.project contains an invalid reference: "Test".' }
I hope I've been clear enough for you guys to help me,
Regards.