tendant / graphql-clj

A Clojure library that provides GraphQL implementation.
Eclipse Public License 1.0
285 stars 22 forks source link

Resolver function #38

Closed tendant closed 7 years ago

tendant commented 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])

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.