Skip to Content
GraphQL Tools
DocumentationAPI@graphql-tools/executorsrcvariablesdefaultFieldResolver

Variable: defaultFieldResolver

const defaultFieldResolver: GraphQLFieldResolver<unknown, unknown>

Defined in: packages/executor/src/execution/execute.ts:1559

If a resolve function is not given, then a default resolve behavior is used which takes the property of the source object of the same name as the field and returns it as the result, or if it’s a function, returns the result of calling that function while passing along args and context value.