Hey Aman I am not sure that I 100% understand, but you can be sure that Neo will generate node ids greater than 0 for each new node you create. With your @NodeEntity annotated classes you will map the ID to a field using the @GraphId annotation. You can safely do front end validation on node id > 0.
You can not set this ID value, this is the internal ID used by Neo and it is important to realise that it is not incremental and that the IDs do get recycled (when nodes get deleted the ID of that node will be re-used). It is therefore recommended that you add you own identification fields if you need to use the ID in any 3rd party systems. Neo does not have a mechanism for generating this separate external identifier for you, but there are a couple of handy blog post which talk about how to leverage event hooks to add the data at node creation time -
this being one of them. I am currently trying to utilise the MERGE operator to create my nodes as it has handy ON CREATE/ON MATCH semantics which can allow autoincrement type behaviour, see this
gist - this works great but I have had issues getting it to work when currency/HA is involved.
With regards to validating if the request from the front end is valid, how would you validate that with or without Neo?
Does that address what you were asking, sorry if I've missed the point,
M