Is there a way to generate an ID! field value for nodes that existed before a GraphQL schema was created?

I'm currently writing a GraphQL endpoint that'll be querying my Neo4j 4.0.0 Community instance.

I'd like to have a new uuid field of type ID! for nodes that existed before and thus do have values in _id but don't yet have nodeTypeNameId attribute.

How do I generate a unique ID for these new fields in bulk so they can become usable through GraphQL?

By the way, I'm usinig Apollo Server and neo4j-graphql-js for my implementation.

You can simply add a uuid to existing nodes by running:

match(n) set = randomUUID()

then you can do the same on your front end.