/gqlgen-introspect-filter

Filter GQLGen's Introspection by your application's business logic.

Primary LanguageGoMIT LicenseMIT

gqlgen-introspect-filter

Go Reference

Filter GQLGen's Introspection by your application's business logic.

// Use as a GQLGen plugin
exec.Use(introspectionfilter.Plugin{
	Schema:      schema,
	
	// Write filter functions to choose if various parts are included.
	FieldFilter: func(fd *ast.FieldDefinition) bool { return fd.Name != "text" },
})