Documentation
¶
Overview ¶
Package graphqlapi serves the admin surface for a GraphQL connection's schema: reading what the platform holds, re-reading it from the endpoint, and — for an endpoint that disables introspection — accepting one an operator supplies.
It is a decomposition seam of pkg/admin, which sits near its package size budget; the parent mounts it on the admin mux and hands it the live toolkit registry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Toolkits enumerates the live toolkits, so a connection added
// through the admin API after startup is reachable here without a
// restart. nil disables every route in this package.
Toolkits func() []registry.Toolkit
// Mutable reports database config mode. False registers the read
// route only: re-reading a schema writes it to the store, and a
// file-configured deployment has nowhere to put it.
Mutable bool
// SchemaStored is told the connection kind and name whose stored
// schema this replica just replaced, by an upload or a re-read, so
// the parent can announce it to peer replicas. Nil announces nothing.
SchemaStored func(kind, name string)
}
Config carries what the routes need from the parent.
Click to show internal directories.
Click to hide internal directories.