entc/gen: edge schema with custom ids (#2742)

Fixed https://github.com/ent/ent/issues/2740
Fixed https://github.com/ent/ent/issues/2741
This commit is contained in:
Ariel Mashraki
2022-07-12 18:13:45 +03:00
committed by GitHub
parent b00e549c88
commit 6c8a1308ec
38 changed files with 4162 additions and 164 deletions

View File

@@ -1535,8 +1535,8 @@ func In(col string, args ...interface{}) *Predicate {
// In appends the `IN` predicate.
func (p *Predicate) In(col string, args ...interface{}) *Predicate {
// if no arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
// If no arguments were provided, append the FALSE constant, since
// we cannot apply "IN ()". This will make this predicate falsy.
if len(args) == 0 {
return p.False()
}