Skip to content

Commit

Permalink
Fixed introspection utils to support that IsRepeatable is not being s…
Browse files Browse the repository at this point in the history
…pecified on directives (#3629)
  • Loading branch information
nloum authored Apr 30, 2021
1 parent 6a79394 commit f5f4019
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ private static DirectiveDefinitionNode CreateDirectiveDefinition(
null,
new NameNode(directive.Name),
CreateDescription(directive.Description),
directive.IsRepeatable,
directive.IsRepeatable ?? false,
CreateInputValues(directive.Args),
locations
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal class Directive
public string Description { get; set; }
public ICollection<InputField> Args { get; set; }
public ICollection<string> Locations { get; set; }
public bool IsRepeatable { get; set; }
public bool? IsRepeatable { get; set; }
public bool OnOperation { get; set; }
public bool OnFragment { get; set; }
public bool OnField { get; set; }
Expand Down

0 comments on commit f5f4019

Please sign in to comment.