-
-
Notifications
You must be signed in to change notification settings - Fork 723
/
IObjectType.cs
38 lines (33 loc) · 1.05 KB
/
IObjectType.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using HotChocolate.Language;
using HotChocolate.Resolvers;
#nullable enable
namespace HotChocolate.Types;
/// <summary>
/// Represents a GraphQL object type
/// </summary>
public interface IObjectType : IComplexOutputType
{
/// <summary>
/// The associated syntax node from the GraphQL SDL.
/// </summary>
new ObjectTypeDefinitionNode? SyntaxNode { get; }
/// <summary>
/// Gets the field that the type exposes.
/// </summary>
new IFieldCollection<IObjectField> Fields { get; }
/// <summary>
/// Specifies if the specified <paramref name="resolverResult" /> is an instance of
/// this object type.
/// </summary>
/// <param name="context">
/// The resolver context.
/// </param>
/// <param name="resolverResult">
/// The result that shall be checked.
/// </param>
/// <returns>
/// <c>true</c> if the <paramref name="context"/> is an instance of this type;
/// otherwise, <c>false</c>.
/// </returns>
bool IsInstanceOfType(IResolverContext context, object resolverResult);
}