Update the primary ID

How do I update the Primary ID attribute when a vertex is created but the Primary ID attribute (column) is null, even though I have set the Primary ID attribute as true? We use .type to specify the vertex type; similarly, is there a way to populate the Primary ID

Hi @prathick_k welcome to the community!

To clarify your question, let’s assume every vertex already has a VERTEX_ID, meaning no vertex exists without one. Given this, you’re stating the following:

You have a vertex that possesses a PRIMARY_ID, and this PRIMARY_ID has been flagged using the AS ATTRIBUTE option.

Can you please guide me through the next steps or provide more detailed information?