-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathISchema.cs
53 lines (41 loc) · 1.17 KB
/
ISchema.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using System.Collections.Generic;
namespace Graph.QL
{
public interface IField
{
string name { get; }
IType type { get; }
}
public interface IProperty : IField
{
bool isRequired { get; }
}
public interface IParameter : IProperty { }
public interface IMethod : IField
{
IReadOnlyList<IParameter> parameters { get; }
}
public interface IType
{
string name { get; }
IEnumerable<IProperty> properties { get; }
IProperty getProperty(string name);
}
public interface IInterfaceType : IType
{
IEnumerable<IMethod> methods { get; }
IMethod getMethod(string name);
}
public interface IListType : IType
{
IType Type { get; }
}
public interface IScalarType : IType { }
public interface IObjectType : IInterfaceType { }
public interface IEnumType : IType { }
public interface ISchema
{
IEnumerable<IType> types { get; }
IType getType(string name);
}
}