In mongoose you can do something like this to enforce a compound unique index:
model.index({ field1: 1, field2: 1}, { unique: true });
Is it possible to accomplish this in keystone?
Figured this out, you want to do this:
SomeKeystoneList.schema.index({ field1: 1, field2: 1}, { unique: true });
Most helpful comment
Figured this out, you want to do this: