Skip to content

Commit

Permalink
Edits
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Mar 19, 2024
1 parent e8ebb4c commit fd1e64e
Show file tree
Hide file tree
Showing 16 changed files with 77 additions and 38 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace HotChocolate.Types;

/// <summary>
/// Defines the resolver dependency injection scopes.
/// </summary>
public enum DependencyInjectionScope
{
/// <summary>
/// Use standard request service scope.
/// </summary>
Request,

/// <summary>
/// Use a separate service scope for the resolver.
/// </summary>
Resolver,
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#nullable enable

using System.Collections.Generic;

namespace HotChocolate.Types;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#nullable enable

using System.Collections.Generic;

namespace HotChocolate.Types;
Expand Down
4 changes: 2 additions & 2 deletions src/HotChocolate/Core/src/Types/Types/Contracts/IEnumType.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#nullable enable

using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

#nullable enable

namespace HotChocolate.Types;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Diagnostics.CodeAnalysis;

#nullable enable

using System.Diagnostics.CodeAnalysis;

namespace HotChocolate.Types;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#nullable enable

namespace HotChocolate.Types;

/// <summary>
Expand Down
2 changes: 2 additions & 0 deletions src/HotChocolate/Core/src/Types/Types/Contracts/IHasName.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#nullable enable

namespace HotChocolate.Types;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#nullable enable

namespace HotChocolate.Types;

internal interface IHasOptional
{
bool IsOptional { get; }
}
10 changes: 10 additions & 0 deletions src/HotChocolate/Core/src/Types/Types/Contracts/IHasProperty.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#nullable enable

using System.Reflection;

namespace HotChocolate.Types;

internal interface IHasProperty
{
PropertyInfo? Property { get; }
}
14 changes: 1 addition & 13 deletions src/HotChocolate/Core/src/Types/Types/Contracts/IInputField.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#nullable enable

using System.Reflection;

namespace HotChocolate.Types;

/// <summary>
Expand All @@ -19,14 +17,4 @@ public interface IInputField : IField, IInputFieldInfo
/// Gets the deprecation reason.
/// </summary>
string? DeprecationReason { get; }
}

internal interface IHasProperty
{
PropertyInfo? Property { get; }
}

internal interface IHasOptional
{
bool IsOptional { get; }
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#nullable enable

namespace HotChocolate.Types;

/// <summary>
/// Represents a GraphQL output type which has a name.
/// </summary>
public interface INamedOutputType
: INamedType
, IOutputType
{
}
, IOutputType;
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,4 @@ public interface IObjectField : IOutputField
/// this property will return <see cref="Member"/>.
/// </summary>
MemberInfo? ResolverMember { get; }
}

public enum DependencyInjectionScope
{
Request,
Resolver,
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#nullable enable

namespace HotChocolate.Types;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#nullable enable

namespace HotChocolate.Types;

public interface ITypeSystemObject
: IHasName
, IHasDescription
, IHasReadOnlyContextData
, IHasScope
, ITypeSystemMember
{
}
, ITypeSystemMember;
23 changes: 22 additions & 1 deletion src/HotChocolate/Core/src/Types/Types/Contracts/MemberKind.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
namespace HotChocolate.Types;

/// <summary>
/// GraphQL Type System Member Kind
/// </summary>
public enum MemberKind
{
Field,
/// <summary>
/// GraphQL Interface Field.
/// </summary>
InterfaceField,

/// <summary>
/// GraphQL Object Field.
/// </summary>
ObjectField,

/// <summary>
/// GraphQL Input Object Field
/// </summary>
InputObjectField,

/// <summary>
/// GraphQL Output Field Argument
/// </summary>
Argument,

/// <summary>
/// GraphQL Directive Argument.
/// </summary>
DirectiveArgument,
}

0 comments on commit fd1e64e

Please sign in to comment.