Discussed in #148
Originally posted by singersbalm March 19, 2024
Why can't I define a custom _id?. I tried to define a users collection with the email as _id to improve lookup performance.
func isValidObjectId(id string) bool {
_, err := uuid.FromString(id)
return err == nil
}
Clover only allows uuids, but why. what's the benefit? Shouldn't that check be optional?
Discussed in #148
Originally posted by singersbalm March 19, 2024
Why can't I define a custom _id?. I tried to define a users collection with the email as _id to improve lookup performance.
Clover only allows uuids, but why. what's the benefit? Shouldn't that check be optional?