MCPcopy Create free account
hub / github.com/dagger/dagger / InstallDirective

Method InstallDirective

dagql/server.go:854–859  ·  view source on GitHub ↗

InstallDirective installs the given Directive type into the schema.

(directive DirectiveSpec)

Source from the content-addressed store, hash-verified

852
853// InstallDirective installs the given Directive type into the schema.
854func (s *Server) InstallDirective(directive DirectiveSpec) {
855 s.installLock.Lock()
856 defer s.installLock.Unlock()
857 s.directives[directive.Name] = directive
858 s.invalidateSchemaCache()
859}
860
861// InstallTypeDef installs an arbitrary type definition into the schema.
862func (s *Server) InstallTypeDef(def TypeDef) {

Callers 2

NewServerFunction · 0.80
InstallMethod · 0.80

Calls 1

invalidateSchemaCacheMethod · 0.95

Tested by

no test coverage detected