# What's the pros of using uuid in neo4j

**URL:** <https://community.neo4j.com/t/whats-the-pros-of-using-uuid-in-neo4j/26668>\
**Category:** Modeling\
**Created:** [October 5, 2020, 7:21pm UTC](https://community.neo4j.com/t/whats-the-pros-of-using-uuid-in-neo4j/26668 "2020-10-05T19:21:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chainrules.com](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/chainrules.com/32/11446_2.png) [@chainrules.com](https://community.neo4j.com/u/chainrules.com)\
**Post date:** [October 5, 2020, 7:21pm UTC](https://community.neo4j.com/t/whats-the-pros-of-using-uuid-in-neo4j/26668/1 "2020-10-05T19:21:21Z")

</div>

I'm new to neo4j and I'm trying to implementing my service on GRANDstack.

I know every node have '\_id' field which is auto-incremental integer index.  
But with 'neo4j-graphql-js', auto-generated schema creates nodes with uuid as a default for 'id' field.

This means newly created node should have '\_id', and also 'id' which is uuid.  
What's good when we have these two keys?  
Does having uuid boosts performance or something?

---

<div class="post-metadata">

**Author:** ![kathryn.moore](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/kathryn.moore/32/11176_2.png) [@kathryn.moore](https://community.neo4j.com/u/kathryn.moore)\
**Post date:** [October 5, 2020, 8:29pm UTC](https://community.neo4j.com/t/whats-the-pros-of-using-uuid-in-neo4j/26668/2 "2020-10-05T20:29:49Z")

</div>

'\_id' is an internal Neo4j value that could be reused if nodes have been deleted. The 'id' is a unique key that your application controls. Neo4j advises not relying on the '\_id' value in your code.

---

<div class="post-metadata">

**Author:** ![chainrules.com](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/chainrules.com/32/11446_2.png) [@chainrules.com](https://community.neo4j.com/u/chainrules.com)\
**Post date:** [October 6, 2020, 8:38am UTC](https://community.neo4j.com/t/whats-the-pros-of-using-uuid-in-neo4j/26668/3 "2020-10-06T08:38:49Z")

</div>

Ah, that makes sense. Thanks a lot!
