MCPcopy Create free account
hub / github.com/vektah/gqlparser / AddPossibleType

Method AddPossibleType

ast/document.go:55–57  ·  view source on GitHub ↗
(name string, def *Definition)

Source from the content-addressed store, hash-verified

53}
54
55func (s *Schema) AddPossibleType(name string, def *Definition) {
56 s.PossibleTypes[name] = append(s.PossibleTypes[name], def)
57}
58
59// GetPossibleTypes will enumerate all the definitions for a given interface or union.
60func (s *Schema) GetPossibleTypes(def *Definition) []*Definition {

Callers 1

ValidateSchemaDocumentFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected