

def tag_resolver(f, tag):
    '\n    Tags a resolver function with a specific tag that can be read by a Middleware to denote specific functionality.\n    :param f: The function to tag.\n    :param tag: The tag to add to the function.\n    :return: The function with the tag added.\n    '
    if (not hasattr(f, '_resolver_tags')):
        f._resolver_tags = set()
    f._resolver_tags.add(tag)
    return f

dataset/ETHPy150Open graphql-python/graphql-core/graphql/core/execution/middlewares/utils.py tag_resolver/original