ObjectType returns the ObjectType with the given name, if it exists.
(name string)
| 868 | |
| 869 | // ObjectType returns the ObjectType with the given name, if it exists. |
| 870 | func (s *Server) ObjectType(name string) (ObjectType, bool) { |
| 871 | s.reconcileInterfaceImplsIfDirty() |
| 872 | s.installLock.RLock() |
| 873 | defer s.installLock.RUnlock() |
| 874 | t, ok := s.objects[name] |
| 875 | return t, ok |
| 876 | } |
| 877 | |
| 878 | // ScalarType returns the ScalarType with the given name, if it exists. |
| 879 | func (s *Server) ScalarType(name string) (ScalarType, bool) { |
no test coverage detected