A decorator that converts a query string into a function parameter based on the specified field.

        :param param_name: The parameter which receives the argument.
        :param Field field: The field class or instance used to deserialize the request query string to a Python object.
        :return: A function

def from_query(self, param_name, field):
        """
        A decorator that converts a query string into a function parameter based on the specified field.

        :param param_name: The parameter which receives the argument.
        :param Field field: The field class or instance used to deserialize the request query string to a Python object.
        :return: A function
        """

        return self.__from_source(param_name, field, lambda: request.args, 'query')