def cursor_for_object_in_connection(data, _object):
    if _object not in data:
        return None

    offset = data.index(_object)
    return offset_to_cursor(offset)
Return the cursor associated with an object in an array.
dataset/ETHPy150Open graphql-python/graphql-relay-py/graphql_relay/connection/arrayconnection.py/cursor_for_object_in_connection