MCPcopy Index your code

hub / github.com/Khan/genqlient / functions

Functions2,231 in github.com/Khan/genqlient

↓ 176 callersMethodError
Error implements the error interface for HTTPError.
graphql/errors.go:15
↓ 102 callersMethodMakeRequest
MakeRequest must make a request to the client's GraphQL API. ctx is the context that should be used to make this request. If context is disabled in
graphql/client.go:36
↓ 102 callersFunctionerrorf
(pos *ast.Position, msg string, args ...interface{})
generate/errors.go:62
↓ 32 callersMethodClose
()
graphql/client.go:194
↓ 20 callersFunctionfakeField
(containingTypeName, fieldName string)
generate/names_test.go:9
↓ 19 callersFunctionMarshalDate
(t *time.Time)
internal/testutil/types.go:34
↓ 19 callersFunctionUnmarshalDate
(b []byte, t *time.Time)
internal/testutil/types.go:47
↓ 17 callersFunctionRunServer
()
internal/integration/server/server.go:216
↓ 15 callersMethodGetId
GetId returns the interface-field "id" from its implementation.
internal/integration/generated.go:296
↓ 14 callersMethodReference
Reference returns the Go name of this type, e.g. []*MyStruct, and may be used to refer to it in Go code.
generate/types.go:26
↓ 14 callersFunctionnewRoundtripClients
(t *testing.T, endpoint string)
internal/integration/roundtrip.go:125
↓ 13 callersMethod__premarshalJSON
()
generate/testdata/snapshots/TestGenerate-CovariantInterfaceImplementation.graphql-CovariantInterfaceImplementation.graphql.go:576
↓ 13 callersMethod__premarshalJSON
()
generate/testdata/snapshots/TestGenerate-ComplexNamedFragments.graphql-ComplexNamedFragments.graphql.go:2522
↓ 12 callersMethodGetTypename
GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values).
internal/integration/generated.go:129
↓ 12 callersMethodmarshalOString2ᚖstring
(ctx context.Context, sel ast.SelectionSet, v *string)
internal/integration/server/gqlgen_exec.go:5697
↓ 12 callersMethodprocessDeferredGroup
(dg graphql.DeferredGroup)
internal/integration/server/gqlgen_exec.go:447
↓ 11 callersMethodfieldContext___Type_description
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3756
↓ 11 callersMethodfieldContext___Type_enumValues
(ctx context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3989
↓ 11 callersMethodfieldContext___Type_fields
(ctx context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3797
↓ 11 callersMethodfieldContext___Type_inputFields
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:4051
↓ 11 callersMethodfieldContext___Type_kind
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3674
↓ 11 callersMethodfieldContext___Type_name
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3715
↓ 11 callersMethodfieldContext___Type_specifiedByURL
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:4165
↓ 10 callersMethodError
()
generate/errors.go:50
↓ 10 callersMethodQuery
()
internal/integration/server/gqlgen_exec.go:42
↓ 10 callersMethodfieldContext___Type_interfaces
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3863
↓ 10 callersMethodfieldContext___Type_ofType
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:4102
↓ 10 callersMethodfieldContext___Type_possibleTypes
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3926
↓ 9 callersMethodGetName
GetName returns the interface-field "name" from its implementation.
internal/integration/generated.go:298
↓ 9 callersMethodUnwrap
Remove slice/pointer wrappers, and return the underlying (named (or builtin)) type. For example, given []*MyStruct, return MyStruct.
generate/types.go:40
↓ 9 callersFunction__marshalContentFieldsNextContent
(v *ContentFieldsNextContent)
generate/testdata/snapshots/TestGenerate-CovariantInterfaceImplementation.graphql-CovariantInterfaceImplementation.graphql.go:301
↓ 9 callersFunction__marshalContentFieldsRelatedContent
(v *ContentFieldsRelatedContent)
generate/testdata/snapshots/TestGenerate-CovariantInterfaceImplementation.graphql-CovariantInterfaceImplementation.graphql.go:432
↓ 8 callersFunctionApplyCasing
ApplyCasing applies a specific casing algorithm to a string. It handles the different casing transformations based on the algorithm. The forceUpperFir
generate/util.go:75
↓ 8 callersMethod__premarshalJSON
()
internal/integration/generated.go:998
↓ 8 callersMethodfieldContext_User_birthdate
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2295
↓ 8 callersMethodfieldContext_User_greatScalar
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2396
↓ 8 callersMethodfieldContext_User_hair
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2250
↓ 8 callersMethodfieldContext_User_id
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2124
↓ 8 callersMethodfieldContext_User_luckyNumber
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2209
↓ 8 callersMethodfieldContext_User_name
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2168
↓ 8 callersFunctionnewPrefixList
creates a new one-element list
generate/names.go:121
↓ 7 callersMethodGetDefaultCasingAlgorithm
GetDefaultCasingAlgorithm returns the default casing algorithm for the config.
generate/config.go:389
↓ 7 callersMethodMarshalGQL
(w io.Writer)
internal/integration/server/gqlgen_models.go:109
↓ 7 callersMethodString
()
generate/errors.go:21
↓ 7 callersMethod_User
(ctx context.Context, sel ast.SelectionSet, obj *User)
internal/integration/server/gqlgen_exec.go:4687
↓ 7 callersMethodaddType
addType inserts the type into g.typeMap, checking for conflicts. The conflict-checking is as described in getType. Note we have to do it here again,
generate/convert.go:65
↓ 7 callersMethodfieldContext_User_friends
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2339
↓ 7 callersMethodref
ref takes a Go fully-qualified name, ensures that any necessary symbols are imported, and returns an appropriate reference. Ideally, we want to allow
generate/imports.go:80
↓ 7 callersFunctionwriteDescription
(w io.Writer, desc string)
generate/types.go:575
↓ 6 callersMethodDescription
()
generate/main.go:64
↓ 6 callersMethodGraphQLTypeName
GraphQLTypeName returns the name of the GraphQL type to which this Go type corresponds.
generate/types.go:30
↓ 6 callersFunctionReadAndValidateConfig
ReadAndValidateConfig reads the configuration from the given file, validates it, and returns it.
generate/config.go:318
↓ 6 callersMethodconvertSelectionSet
convertSelectionSet converts a GraphQL selection-set into a list of corresponding Go struct-fields (and their Go types) A selection-set is a list of
generate/convert.go:592
↓ 6 callersMethodmarshalNString2string
(ctx context.Context, sel ast.SelectionSet, v string)
internal/integration/server/gqlgen_exec.go:5250
↓ 6 callersMethodrender
render executes the given template with the funcs from this generator.
generate/template.go:32
↓ 5 callersFunctionGenerate
Generate is the main programmatic entrypoint to genqlient, and generates and returns Go source code based on the given configuration. See [Config] fo
generate/generate.go:321
↓ 5 callersMethodSelectionSet
SelectionSet returns the selection-set of the GraphQL field from which this type was generated, or nil if none is applicable (for GraphQL scalar, enum
generate/types.go:36
↓ 5 callersMethodparsePrecedingComment
parsePrecedingComment looks at the comment right before this node, and returns the genqlient directive applied to it (or an empty one if there is none
generate/genqlient_directive.go:465
↓ 5 callersFunctionpathJoin
pathJoin is like filepath.Join but 1) it only takes two argsuments, and b) if the second argument is an absolute path the first argument is ignored (s
generate/config.go:137
↓ 5 callersFunctionuserByID
(id string)
internal/integration/server/server.go:45
↓ 5 callersFunctionvalidateFlattenOption
( typ *ast.Definition, selectionSet ast.SelectionSet, pos *ast.Position, )
generate/genqlient_directive.go:332
↓ 4 callersMethodGetFlatten
()
generate/genqlient_directive.go:78
↓ 4 callersMethodGetOmitempty
()
generate/genqlient_directive.go:74
↓ 4 callersFunctionNewClient
NewClient returns a [Client] which makes requests to the given endpoint, suitable for most users. The client makes POST requests to the given GraphQL
graphql/client.go:104
↓ 4 callersMethodSubscribe
Subscribe must subscribe to an endpoint of the client's GraphQL API. req contains the data to be sent to the GraphQL server. Will be marshalled into
graphql/client.go:69
↓ 4 callersMethodUnsubscribe
Unsubscribe must unsubscribe from an endpoint of the client's GraphQL API.
graphql/client.go:76
↓ 4 callersMethodfieldContext___InputValue_defaultValue
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3275
↓ 4 callersMethodfieldContext___InputValue_description
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3168
↓ 4 callersMethodfieldContext___InputValue_name
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3127
↓ 4 callersMethodfieldContext___InputValue_type
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3212
↓ 4 callersFunctionfillDefaultBool
(target **bool, defaults ...*bool)
generate/genqlient_directive.go:384
↓ 4 callersFunctionmakeTypeName
Given a prefix-list, and the GraphQL of the current type, compute the name we should give it in Go.
generate/names.go:170
↓ 4 callersMethodmarshalNBoolean2bool
(ctx context.Context, sel ast.SelectionSet, v bool)
internal/integration/server/gqlgen_exec.go:5111
↓ 4 callersMethodmarshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType
(ctx context.Context, sel ast.SelectionSet, v *introspection.Type)
internal/integration/server/gqlgen_exec.go:5948
↓ 4 callersFunctionnextPrefix
Given a prefix-list, and a field, compute the next prefix-list, which will be used for that field's selections.
generate/names.go:159
↓ 4 callersFunctionsetBool
(optionName string, dst **bool, v *ast.Value, pos *ast.Position)
generate/genqlient_directive.go:80
↓ 4 callersFunctionsetString
(optionName string, dst *string, v *ast.Value, pos *ast.Position)
generate/genqlient_directive.go:95
↓ 4 callersFunctionstrptr
(v string)
internal/integration/server/server.go:16
↓ 4 callersFunctionwarn
TODO(benkraft): Make this mockable for tests?
generate/main.go:18
↓ 3 callersMethodIsEmbedded
IsEmbedded returns true if this field is embedded (a.k.a. anonymous), which is in practice true if it corresponds to a named fragment spread in GraphQ
generate/types.go:193
↓ 3 callersMethodSchema
()
internal/integration/server/gqlgen_exec.go:124
↓ 3 callersMethodStart
Start must open a webSocket connection and subscribe to an endpoint of the client's GraphQL API. errChan is a channel on which are sent the errors of
graphql/client.go:51
↓ 3 callersMethod___Type
(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type)
internal/integration/server/gqlgen_exec.go:5009
↓ 3 callersFunction__marshalCovariantInterfaceImplementationRandomItemContentNextContent
(v *CovariantInterfaceImplementationRandomItemContentNextContent)
generate/testdata/snapshots/TestGenerate-CovariantInterfaceImplementation.graphql-CovariantInterfaceImplementation.graphql.go:1129
↓ 3 callersFunction__marshalCovariantInterfaceImplementationRandomItemContentRelatedContent
(v *CovariantInterfaceImplementationRandomItemContentRelatedContent)
generate/testdata/snapshots/TestGenerate-CovariantInterfaceImplementation.graphql-CovariantInterfaceImplementation.graphql.go:1529
↓ 3 callersFunction__marshalInnerQueryFragmentOtherLeafLeafContent
(v *InnerQueryFragmentOtherLeafLeafContent)
generate/testdata/snapshots/TestGenerate-ComplexNamedFragments.graphql-ComplexNamedFragments.graphql.go:658
↓ 3 callersFunction__marshalInnerQueryFragmentRandomItemContent
(v *InnerQueryFragmentRandomItemContent)
generate/testdata/snapshots/TestGenerate-ComplexNamedFragments.graphql-ComplexNamedFragments.graphql.go:915
↓ 3 callersFunction__marshalInnerQueryFragmentRandomLeafLeafContent
(v *InnerQueryFragmentRandomLeafLeafContent)
generate/testdata/snapshots/TestGenerate-ComplexNamedFragments.graphql-ComplexNamedFragments.graphql.go:1244
↓ 3 callersMethod__premarshalJSON
()
generate/testdata/snapshots/TestGenerate-SimpleNamedFragment.graphql-SimpleNamedFragment.graphql.go:486
↓ 3 callersFunction__unmarshalContentFieldsNextContent
(b []byte, v *ContentFieldsNextContent)
generate/testdata/snapshots/TestGenerate-CovariantInterfaceImplementation.graphql-CovariantInterfaceImplementation.graphql.go:269
↓ 3 callersFunction__unmarshalContentFieldsRelatedContent
(b []byte, v *ContentFieldsRelatedContent)
generate/testdata/snapshots/TestGenerate-CovariantInterfaceImplementation.graphql-CovariantInterfaceImplementation.graphql.go:400
↓ 3 callersFunction__unmarshalCovariantInterfaceImplementationRandomItemContentNextContent
(b []byte, v *CovariantInterfaceImplementationRandomItemContentNextContent)
generate/testdata/snapshots/TestGenerate-CovariantInterfaceImplementation.graphql-CovariantInterfaceImplementation.graphql.go:1097
↓ 3 callersFunction__unmarshalCovariantInterfaceImplementationRandomItemContentRelatedContent
(b []byte, v *CovariantInterfaceImplementationRandomItemContentRelatedContent)
generate/testdata/snapshots/TestGenerate-CovariantInterfaceImplementation.graphql-CovariantInterfaceImplementation.graphql.go:1497
↓ 3 callersMethodconvertType
convertType decides the Go type we will generate corresponding to a particular GraphQL type. In this context, "type" represents the type of a field,
generate/convert.go:221
↓ 3 callersFunctionexpandFilenames
(globs []string)
generate/parse.go:89
↓ 3 callersFunctionfillDefaultString
(target *string, defaults ...string)
generate/genqlient_directive.go:397
↓ 3 callersFunctionfindCfgInDir
(dir string)
generate/config.go:378
↓ 3 callersFunctionfragmentMatches
fragmentMatches returns true if the given fragment is "active" when applied to the given type. "Active" here means "the fragment's fields will be ret
generate/convert.go:709
↓ 3 callersFunctiongetQueries
(basedir string, globs StringList)
generate/parse.go:115
↓ 3 callersFunctionjoinPrefixList
(prefix *prefixList)
generate/names.go:125
next →1–100 of 2,231, ranked by callers