(info)
return query
A convenience function to call collect_query_fields with info

    Args:
        info (ResolveInfo)

    Returns:
        dict: Returned from collect_query_fields
A convenience function to call collect_query_fields with info
A convenience function to call collect_query_fields with info
def get_query_fields(info):
    """A convenience function to call collect_query_fields with info

    Args:
        info (ResolveInfo)

    Returns:
        dict: Returned from collect_query_fields
    """

    fragments = {}
    node = ast_to_dict(info.field_nodes[0])

    for name, value in info.fragments.items():
        fragments[name] = ast_to_dict(value)

    query = collect_query_fields(node, fragments)
    if "edges" in query:
        return query["edges"]["node"].keys()
    return query
def get_query_fields ( info ) : fragments = { } node = ast_to_dict ( info . field_nodes [ 0 ] ) for name , value in info . fragments . items ( ) : fragments [ name ] = ast_to_dict ( value ) query = collect_query_fields ( node , fragments ) if "edges" in query : return query [ "edges" ] [ "node" ] . keys ( ) return query