Closed tendant closed 7 years ago
Resolver: Provide mapping from (Type, field) -> fn. We need figure out what is good definition of resolver-fn.
Current resolver-fn has definition: (fn [context parent args])
(fn [context parent args])
context: is provided by caller of Executor. It contains any context from execution environment, it will be passed directly to resolver function.
parent: is the resolved result of parent Type.
args: it contains arguments of field, including default value of arguments combined with provided arguments.
Resolver: Provide mapping from (Type, field) -> fn. We need figure out what is good definition of resolver-fn.
Current resolver-fn has definition:
(fn [context parent args])
context: is provided by caller of Executor. It contains any context from execution environment, it will be passed directly to resolver function.
parent: is the resolved result of parent Type.
args: it contains arguments of field, including default value of arguments combined with provided arguments.