private Func <object, object> CompileResolverExpression(ParameterExpression entityParam, Expression body)
        {
            // check if body is a MapTo func - return the source entity, mapping will be handled by the caller
            var methCall        = body as MethodCallExpression;
            var usesFromMapFunc = methCall != null && methCall.Method.DeclaringType == typeof(GraphQLModule) &&
                                  methCall.Method.Name == nameof(GraphQLModule.FromMap);

            if (usesFromMapFunc)
            {
                body = methCall.Arguments[0];
            }
            return(ExpressionHelper.CompileResolverExpression(entityParam, body));
        }