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

Method InstallTypeDef

dagql/server.go:862–867  ·  view source on GitHub ↗

InstallTypeDef installs an arbitrary type definition into the schema.

(def TypeDef)

Source from the content-addressed store, hash-verified

860
861// InstallTypeDef installs an arbitrary type definition into the schema.
862func (s *Server) InstallTypeDef(def TypeDef) {
863 s.installLock.Lock()
864 defer s.installLock.Unlock()
865 s.typeDefs[def.TypeName()] = def
866 s.invalidateSchemaCache()
867}
868
869// ObjectType returns the ObjectType with the given name, if it exists.
870func (s *Server) ObjectType(name string) (ObjectType, bool) {

Callers 1

InstallMethod · 0.80

Calls 2

invalidateSchemaCacheMethod · 0.95
TypeNameMethod · 0.65

Tested by

no test coverage detected