Make resolve and resolve_field more flexible
This ensures that these methods work correctly in more cicumstances. If given a real context, it will be hashified before consumption (not doing so causes `Context#to_h` to raise a runtime error). We check for the field on the `object_type` rather than always on the `described_class` - this makes `resolve_field` usable outside type specs.
Showing
Please register or sign in to comment