Open
Description
- method
<name>(object, *fieldArgs [, DataFetchingEnvironment])
- method
is<Name>(object, *fieldArgs [, DataFetchingEnvironment])
, only if the field returns a Boolean - method
get<Name>(object, *fieldArgs [, DataFetchingEnvironment])
- method
getField<Name>(object, *fieldArgs [, DataFetchingEnvironment])
- field
<name>
Currently only the above fieldResolvers are supported.
But there are use cases where are in using local context would be the only requirement.
Can methods with the following definition be supported?
method (is|get|getField)?<Name>(*fieldArgs, DataFetchingEnvironment)
is supported.
The following hypothetical example shows that while loading imageBlob, we would want to know just the type of files supported. Since the parent of imageBlob is the image this data won't be available. Just the localContext is needed. In these cases, there is only need for DataFetchingEnvironment. So support for the above mentioned methodResolver would be cleaner.
type Folder {
supportedFileTypes: [String!]!
images: [Image!]!
}
type Image {
imageBlob: String
}