InstallDirective installs the given Directive type into the schema.
(directive DirectiveSpec)
| 852 | |
| 853 | // InstallDirective installs the given Directive type into the schema. |
| 854 | func (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. |
| 862 | func (s *Server) InstallTypeDef(def TypeDef) { |
no test coverage detected