Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Khan/genqlient
/ functions
Functions
2,231 in github.com/Khan/genqlient
⨍
Functions
2,231
◇
Types & classes
661
↓ 3 callers
Function
makeRequest
(server *httptest.Server)
graphql/client_test.go:25
↓ 3 callers
Function
makeServer
(t *testing.T, responseCode int, responseBody any)
graphql/client_test.go:15
↓ 3 callers
Method
marshalNID2string
(ctx context.Context, sel ast.SelectionSet, v string)
internal/integration/server/gqlgen_exec.go:5173
↓ 3 callers
Method
marshalNUser2ᚕᚖgithubᚗcomᚋKhanᚋgenqlientᚋinternalᚋintegrationᚋserverᚐUserᚄ
(ctx context.Context, sel ast.SelectionSet, v []*User)
internal/integration/server/gqlgen_exec.go:5264
↓ 3 callers
Method
marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType
(ctx context.Context, sel ast.SelectionSet, v *introspection.Type)
internal/integration/server/gqlgen_exec.go:5546
↓ 3 callers
Method
marshalOBeing2githubᚗcomᚋKhanᚋgenqlientᚋinternalᚋintegrationᚋserverᚐBeing
(ctx context.Context, sel ast.SelectionSet, v Being)
internal/integration/server/gqlgen_exec.go:5571
↓ 3 callers
Method
marshalOUser2ᚖgithubᚗcomᚋKhanᚋgenqlientᚋinternalᚋintegrationᚋserverᚐUser
(ctx context.Context, sel ast.SelectionSet, v *User)
internal/integration/server/gqlgen_exec.go:5746
↓ 3 callers
Function
maybeAddTypeDescription
(info descriptionInfo, description string)
generate/description.go:27
↓ 3 callers
Function
newGenqlientDirective
(pos *ast.Position)
generate/genqlient_directive.go:28
↓ 3 callers
Function
queryWithInterfaceNoFragments
( ctx_ context.Context, client_ graphql.Client, id string, )
internal/integration/generated.go:3600
↓ 3 callers
Method
sendStructAsJSON
(object any)
graphql/websocket.go:83
↓ 3 callers
Function
testStringFunc
(t *testing.T, f func(string) string, tests []test)
generate/util_test.go:11
↓ 3 callers
Function
usersByBirthdates
(dates []string)
internal/integration/server/server.go:54
↓ 2 callers
Method
Being
(ctx context.Context, id string)
internal/integration/server/gqlgen_exec.go:104
↓ 2 callers
Method
Beings
(ctx context.Context, ids []string)
internal/integration/server/gqlgen_exec.go:105
↓ 2 callers
Method
Count
(ctx context.Context)
internal/integration/server/gqlgen_exec.go:113
↓ 2 callers
Method
CountAuthorized
(ctx context.Context)
internal/integration/server/gqlgen_exec.go:114
↓ 2 callers
Method
CreateUser
(ctx context.Context, input NewUser)
internal/integration/server/gqlgen_exec.go:99
↓ 2 callers
Method
DialContext
(ctx context.Context, urlStr string, requestHeader http.Header)
graphql/client.go:188
↓ 2 callers
Method
Fail
(ctx context.Context)
internal/integration/server/gqlgen_exec.go:110
↓ 2 callers
Method
Get
(fallback V)
internal/testutil/types.go:71
↓ 2 callers
Method
LotteryWinner
(ctx context.Context, number int)
internal/integration/server/gqlgen_exec.go:106
↓ 2 callers
Method
Me
(ctx context.Context)
internal/integration/server/gqlgen_exec.go:102
↓ 2 callers
Method
NeedsMarshaling
NeedsMarshaler returns true if any fields of this type need special handling when (un)marshaling (see goStructField.NeedsMarshaling).
generate/types.go:275
↓ 2 callers
Function
NewClientUsingGet
NewClientUsingGet returns a [Client] which makes GET requests to the given endpoint suitable for most users who wish to make GET requests instead of P
graphql/client.go:125
↓ 2 callers
Method
ReadMessage
()
graphql/client.go:196
↓ 2 callers
Function
RepoRoot
RepoRoot returns the root of the genqlient repository,
internal/integration/util.go:15
↓ 2 callers
Function
RunGenerateTest
RunGenerateTest checks that running genqlient with the given repo-root-relative config file would not produce any changes to the checked-in files. No
internal/integration/util.go:34
↓ 2 callers
Method
Selector
Selector returns the field's name, which is unqualified type-name if it's embedded.
generate/types.go:199
↓ 2 callers
Method
Subscription
()
internal/integration/server/gqlgen_exec.go:43
↓ 2 callers
Method
User
(ctx context.Context, id *string)
internal/integration/server/gqlgen_exec.go:103
↓ 2 callers
Method
UserSearch
(ctx context.Context, birthdate *string, id *string)
internal/integration/server/gqlgen_exec.go:109
↓ 2 callers
Method
UsersBornOn
(ctx context.Context, date string)
internal/integration/server/gqlgen_exec.go:107
↓ 2 callers
Method
UsersBornOnDates
(ctx context.Context, dates []string)
internal/integration/server/gqlgen_exec.go:108
↓ 2 callers
Method
ValidateAndFillDefaults
ValidateAndFillDefaults ensures that the configuration is valid, and fills in any options that were unspecified. The argument is the directory relati
generate/config.go:195
↓ 2 callers
Method
WriteMessage
(messageType int, data []byte)
graphql/client.go:195
↓ 2 callers
Method
_Animal
(ctx context.Context, sel ast.SelectionSet, obj *Animal)
internal/integration/server/gqlgen_exec.go:4258
↓ 2 callers
Function
__marshalAnimalFieldsOwnerBeing
(v *AnimalFieldsOwnerBeing)
internal/integration/generated.go:166
↓ 2 callers
Function
__marshalTopicNewestContentNewestContentLeafContent
(v *TopicNewestContentNewestContentLeafContent)
generate/testdata/snapshots/TestGenerate-ComplexNamedFragments.graphql-ComplexNamedFragments.graphql.go:2075
↓ 2 callers
Function
__marshalUserLastContentLastContentLeafContent
(v *UserLastContentLastContentLeafContent)
generate/testdata/snapshots/TestGenerate-ComplexNamedFragments.graphql-ComplexNamedFragments.graphql.go:2356
↓ 2 callers
Method
__premarshalJSON
()
generate/testdata/snapshots/TestGenerate-StructOption.graphql-StructOption.graphql.go:161
↓ 2 callers
Method
__premarshalJSON
()
generate/testdata/snapshots/TestGenerate-ComplexInlineFragments.graphql-ComplexInlineFragments.graphql.go:1271
↓ 2 callers
Method
argsString
Helper for String, returns the directive but without the @genqlient().
generate/genqlient_directive.go:36
↓ 2 callers
Method
baseTypeForOperation
baseTypeForOperation returns the definition of the GraphQL type to which the root of the operation corresponds, e.g. the "Query" or "Mutation" type.
generate/convert.go:76
↓ 2 callers
Function
beingByID
(id string)
internal/integration/server/server.go:66
↓ 2 callers
Function
buildGoFile
buildGoFile returns an error if the given Go code is not valid. namePrefix is used for the temp-file, and is just for debugging.
generate/generate_test.go:24
↓ 2 callers
Function
changeFirst
(s string, f func(rune) rune)
generate/util.go:15
↓ 2 callers
Function
createUser
( ctx_ context.Context, client_ graphql.Client, user NewUser, )
internal/integration/generated.go:3213
↓ 2 callers
Function
failingQuery
( ctx_ context.Context, client_ graphql.Client, )
internal/integration/generated.go:3248
↓ 2 callers
Method
fieldContext_BeingsHair_hasHair
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:1188
↓ 2 callers
Method
fieldContext_Hair_color
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:1229
↓ 2 callers
Method
fieldContext___Directive_args
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2569
↓ 2 callers
Method
fieldContext___Directive_description
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2481
↓ 2 callers
Method
fieldContext___Directive_isRepeatable
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2623
↓ 2 callers
Method
fieldContext___Directive_locations
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2525
↓ 2 callers
Method
fieldContext___Directive_name
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2440
↓ 2 callers
Method
fieldContext___EnumValue_deprecationReason
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2793
↓ 2 callers
Method
fieldContext___EnumValue_description
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2708
↓ 2 callers
Method
fieldContext___EnumValue_isDeprecated
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2752
↓ 2 callers
Method
fieldContext___EnumValue_name
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2667
↓ 2 callers
Method
fieldContext___Field_args
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2922
↓ 2 callers
Method
fieldContext___Field_deprecationReason
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3083
↓ 2 callers
Method
fieldContext___Field_description
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2878
↓ 2 callers
Method
fieldContext___Field_isDeprecated
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3042
↓ 2 callers
Method
fieldContext___Field_name
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2837
↓ 2 callers
Method
fieldContext___Field_type
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:2976
↓ 2 callers
Method
fieldContext___Schema_description
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3316
↓ 2 callers
Method
fieldContext___Schema_directives
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3618
↓ 2 callers
Method
fieldContext___Schema_mutationType
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3489
↓ 2 callers
Method
fieldContext___Schema_queryType
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3426
↓ 2 callers
Method
fieldContext___Schema_subscriptionType
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3552
↓ 2 callers
Method
fieldContext___Schema_types
(_ context.Context, field graphql.CollectedField)
internal/integration/server/gqlgen_exec.go:3360
↓ 2 callers
Method
field_Mutation_createUser_args
endregion ************************** generated!.gotpl ************************** region ***************************** args.gotpl ******************
internal/integration/server/gqlgen_exec.go:552
↓ 2 callers
Method
field_Query_being_args
(ctx context.Context, rawArgs map[string]interface{})
internal/integration/server/gqlgen_exec.go:616
↓ 2 callers
Method
field_Query_beings_args
(ctx context.Context, rawArgs map[string]interface{})
internal/integration/server/gqlgen_exec.go:648
↓ 2 callers
Method
field_Query_lotteryWinner_args
(ctx context.Context, rawArgs map[string]interface{})
internal/integration/server/gqlgen_exec.go:680
↓ 2 callers
Method
field_Query_userSearch_args
(ctx context.Context, rawArgs map[string]interface{})
internal/integration/server/gqlgen_exec.go:712
↓ 2 callers
Method
field_Query_user_args
(ctx context.Context, rawArgs map[string]interface{})
internal/integration/server/gqlgen_exec.go:771
↓ 2 callers
Method
field_Query_usersBornOnDates_args
(ctx context.Context, rawArgs map[string]interface{})
internal/integration/server/gqlgen_exec.go:803
↓ 2 callers
Method
field_Query_usersBornOn_args
(ctx context.Context, rawArgs map[string]interface{})
internal/integration/server/gqlgen_exec.go:835
↓ 2 callers
Function
filepathJoinAll
(a string, bs []string)
generate/parse_test.go:85
↓ 2 callers
Function
findCfg
findCfg searches for the config file in this directory and all parents up the tree looking for the closest match
generate/config.go:358
↓ 2 callers
Method
formatJSON
Put JSON in a stable and human-readable format.
internal/integration/roundtrip.go:57
↓ 2 callers
Function
fragmentDescription
(info descriptionInfo)
generate/description.go:36
↓ 2 callers
Method
getDefault
()
generate/config.go:117
↓ 2 callers
Function
getQueriesFromString
(text string, basedir, filename string)
generate/parse.go:166
↓ 2 callers
Function
getTestQueries
(t *testing.T, ext string)
generate/parse_test.go:28
↓ 2 callers
Method
getType
getType returns the existing type in g.typeMap with the given name, if any, and an error if such type is incompatible with this one. This is useful a
generate/convert.go:26
↓ 2 callers
Function
goSourceError
goSourceError processes the error(s) returned by go tooling (gofmt, etc.) into a nice error message. In practice, such errors are genqlient internal
generate/errors.go:142
↓ 2 callers
Method
handleErr
(err error)
graphql/websocket.go:107
↓ 2 callers
Function
intptr
(v int)
internal/integration/server/server.go:17
↓ 2 callers
Function
makeIdentifier
makeIdentifier takes a string and returns a valid go identifier like it. If the string is an identifier, return the input. Otherwise, munge it to mak
generate/imports.go:19
↓ 2 callers
Method
marshalNInt2int
(ctx context.Context, sel ast.SelectionSet, v int)
internal/integration/server/gqlgen_exec.go:5220
↓ 2 callers
Method
marshalNUser2ᚖgithubᚗcomᚋKhanᚋgenqlientᚋinternalᚋintegrationᚋserverᚐUser
(ctx context.Context, sel ast.SelectionSet, v *User)
internal/integration/server/gqlgen_exec.go:5308
↓ 2 callers
Method
marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue
(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue)
internal/integration/server/gqlgen_exec.go:5450
↓ 2 callers
Method
marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ
(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue)
internal/integration/server/gqlgen_exec.go:5454
↓ 2 callers
Method
marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType
(ctx context.Context, sel ast.SelectionSet, v introspection.Type)
internal/integration/server/gqlgen_exec.go:5498
↓ 2 callers
Method
marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ
(ctx context.Context, sel ast.SelectionSet, v []introspection.Type)
internal/integration/server/gqlgen_exec.go:5901
↓ 2 callers
Method
marshaler
marshaler returns: - the fully-qualified name of the function to use to marshal this field - true if we need to generate an marshaler at all, false if
generate/types.go:240
↓ 2 callers
Function
newClient
(endpoint string, httpClient Doer, method string)
graphql/client.go:171
← previous
next →
101–200 of 2,231, ranked by callers