Skip to content

Commit f4b1b5a

Browse files
committed
Added OneOf to built-in types and well-known directives
1 parent 9b17281 commit f4b1b5a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/HotChocolate/Core/src/Types.Shared/BuiltInTypes.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ public static class BuiltInTypes
2828
WellKnownDirectives.Deprecated,
2929
WellKnownDirectives.Defer,
3030
WellKnownDirectives.Stream,
31-
WellKnownDirectives.SpecifiedBy
31+
WellKnownDirectives.SpecifiedBy,
32+
WellKnownDirectives.OneOf
3233
];
3334

3435
public static bool IsBuiltInType(string name)

src/HotChocolate/Core/src/Types.Shared/WellKnownDirectives.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ internal static class WellKnownDirectives
99
public const string Deprecated = "deprecated";
1010
public const string SpecifiedBy = "specifiedBy";
1111
public const string DeprecationReasonArgument = "reason";
12+
public const string OneOf = "oneOf";
1213
}

0 commit comments

Comments
 (0)