GetInterface retrieves a saved interface type definition from the module.
(name string)
| 498 | |
| 499 | // GetInterface retrieves a saved interface type definition from the module. |
| 500 | func (m *moduleDef) GetInterface(name string) *modInterface { |
| 501 | for _, iface := range m.AsInterfaces() { |
| 502 | // Normalize name in case an SDK uses a different convention for interface names. |
| 503 | if gqlObjectName(iface.Name) == gqlObjectName(name) { |
| 504 | return iface |
| 505 | } |
| 506 | } |
| 507 | return nil |
| 508 | } |
| 509 | |
| 510 | // GetEnum retrieves a saved enum type definition from the module. |
| 511 | func (m *moduleDef) GetEnum(name string) *modEnum { |
no test coverage detected