This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdesc.go
64 lines (51 loc) · 1.9 KB
/
desc.go
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
54
55
56
57
58
59
60
61
62
63
64
package graphql
import (
"github.com/graphql-go/graphql"
)
// ResolveTypeParams used in ResolveType fn
type ResolveTypeParams = graphql.ResolveTypeParams
// IsTypeOfParams used in IsTypeOf fn
type IsTypeOfParams = graphql.IsTypeOfParams
// ResolveParams params for field resolvers
type ResolveParams = graphql.ResolveParams
// ResolveInfo is a collection of information about the current execution state
type ResolveInfo = graphql.ResolveInfo
// FieldHandler given implementation configures field resolver
type FieldHandler func(impl interface{}) graphql.FieldResolveFn
// ObjectDesc describes object configuration and handlers for use by service.
type ObjectDesc struct {
// Config thunk returns copy of config
Config func() graphql.ObjectConfig
// FieldHandlers handlers that wrap each field resolver.
FieldHandlers map[string]FieldHandler
}
// ScalarDesc describes scalar configuration and handlers for use by service.
type ScalarDesc struct {
// Config thunk returns copy of config
Config func() graphql.ScalarConfig
}
// UnionDesc describes union configuration and handlers for use by service.
type UnionDesc struct {
// Config thunk returns copy of config
Config func() graphql.UnionConfig
}
// EnumDesc describes enum configuration and handlers for use by service.
type EnumDesc struct {
// Config thunk returns copy of config
Config func() graphql.EnumConfig
}
// InputDesc describes input configuration and handlers for use by service.
type InputDesc struct {
// Config thunk returns copy of config
Config func() graphql.InputObjectConfig
}
// InterfaceDesc describes interface configuration and handlers for use by service.
type InterfaceDesc struct {
// Config thunk returns copy of config
Config func() graphql.InterfaceConfig
}
// SchemaDesc describes schema configuration and handlers for use by service.
type SchemaDesc struct {
// Config thunk returns copy of config
Config func() graphql.SchemaConfig
}