Skip to content

Commit

Permalink
resolved review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaji-kharse committed Aug 27, 2024
1 parent 655af94 commit 2774638
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions graphql/schema/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -1453,6 +1453,12 @@ func lambdaDirectiveValidation(sch *ast.Schema,
return errs
}

// defaultDirectiveValidation will prevents use of @default on:
// Types with @remote directive
// Fields of type ID
// Fields that are not scalar types (Int, Float, String, Boolean, DateTime) or an enum
// Fields that are list types (ie `[String])
// Fields with @id, @custom, @lambda
func defaultDirectiveValidation(sch *ast.Schema,
typ *ast.Definition,
field *ast.FieldDefinition,
Expand Down

0 comments on commit 2774638

Please sign in to comment.