GetObject retrieves a saved object type definition from the module.
(name string)
| 467 | |
| 468 | // GetObject retrieves a saved object type definition from the module. |
| 469 | func (m *moduleDef) GetObject(name string) *modObject { |
| 470 | for _, obj := range m.AsObjects() { |
| 471 | // Normalize name in case an SDK uses a different convention for object names. |
| 472 | if gqlObjectName(obj.Name) == gqlObjectName(name) { |
| 473 | return obj |
| 474 | } |
| 475 | } |
| 476 | return nil |
| 477 | } |
| 478 | |
| 479 | func (m *moduleDef) GetObjectFunction(objectName, functionName string) (*modFunction, error) { |
| 480 | fp := m.GetFunctionProvider(objectName) |
no test coverage detected