FieldResolver is used in DefaultResolveFn when the the source value implements this interface.
| 927 | |
| 928 | // FieldResolver is used in DefaultResolveFn when the the source value implements this interface. |
| 929 | type FieldResolver interface { |
| 930 | // Resolve resolves the value for the given ResolveParams. It has the same semantics as FieldResolveFn. |
| 931 | Resolve(p ResolveParams) (interface{}, error) |
| 932 | } |
| 933 | |
| 934 | // DefaultResolveFn If a resolve function is not given, then a default resolve behavior is used |
| 935 | // which takes the property of the source object of the same name as the field |
no outgoing calls
no test coverage detected
searching dependent graphs…