ksch
04/23/2020, 8:46 AMwhere: {
myCustomId: String(id)
}
Basically I want to query with the default ID but also with another oneksch
04/23/2020, 8:57 AMRyan
04/23/2020, 8:58 AMwhere
clause?ksch
04/23/2020, 8:58 AMksch
04/23/2020, 9:00 AMUnknown arg `customId` in where.customId for type TestWhereUniqueInput. Available args:
type TestWhereUniqueInput {
id?: String
}
Ryan
04/23/2020, 9:05 AMmyCustomId
field unique?
And you're using findOne
?ksch
04/23/2020, 9:06 AM.update()
the field value is unique but not in the schema. Is it enough to give it the @unique
attr?Ryan
04/23/2020, 9:09 AM@unique
attr, you will be able toksch
04/23/2020, 9:11 AMRyan
04/23/2020, 9:14 AMfindMany
then 🙂