# Resolvers

Resolvers allow to take full control over a field, bypassing the default behaviour and store.

While mocks function never receive any arguments, resolvers do get the 4 usual arguments of GraphQL resolvers:

resolver(src, args, ctx, info)
  • src: The previous object (often not used for fields on the root Query type).
  • args: The arguments provided to the field in the GraphQL query.
  • ctx: A value which is provided to every resolver and holds important contextual information like the currently logged in user, or access to a database.
  • info: A value which holds field-specific information relevant to the current query as well as the schema details.

Poser introduces some specifics:

  • src is a Reference pointing to the previous object
  • ctx is the Request object from the Express request

# Using src

TODO