1package graphql 2 3import ( 4 "github.com/graphql-go/graphql" 5) 6 7// ResolveTypeParams used in ResolveType fn 8type ResolveTypeParams = graphql.ResolveTypeParams 9 10// IsTypeOfParams used in IsTypeOf fn 11type IsTypeOfParams = graphql.IsTypeOfParams 12 13// ResolveParams params for field resolvers 14type ResolveParams = graphql.ResolveParams 15 16// ResolveInfo is a collection of information about the current execution state 17type ResolveInfo = graphql.ResolveInfo 18 19// FieldHandler given implementation configures field resolver 20type FieldHandler func(impl interface{}) graphql.FieldResolveFn 21 22// ObjectDesc describes object configuration and handlers for use by service. 23type ObjectDesc struct { 24 // Config thunk returns copy of config 25 Config func() graphql.ObjectConfig 26 // FieldHandlers handlers that wrap each field resolver. 27 FieldHandlers map[string]FieldHandler 28} 29 30// ScalarDesc describes scalar configuration and handlers for use by service. 31type ScalarDesc struct { 32 // Config thunk returns copy of config 33 Config func() graphql.ScalarConfig 34} 35 36// UnionDesc describes union configuration and handlers for use by service. 37type UnionDesc struct { 38 // Config thunk returns copy of config 39 Config func() graphql.UnionConfig 40} 41 42// EnumDesc describes enum configuration and handlers for use by service. 43type EnumDesc struct { 44 // Config thunk returns copy of config 45 Config func() graphql.EnumConfig 46} 47 48// InputDesc describes input configuration and handlers for use by service. 49type InputDesc struct { 50 // Config thunk returns copy of config 51 Config func() graphql.InputObjectConfig 52} 53 54// InterfaceDesc describes interface configuration and handlers for use by service. 55type InterfaceDesc struct { 56 // Config thunk returns copy of config 57 Config func() graphql.InterfaceConfig 58} 59 60// SchemaDesc describes schema configuration and handlers for use by service. 61type SchemaDesc struct { 62 // Config thunk returns copy of config 63 Config func() graphql.SchemaConfig 64} 65