I am using Flask to make a web API based on NEO4J graph database.
I have a graph of topics and each topic has a "topic_name" and a "topic_id" properties set. I want to search for a topic with a particular topic_name (say "Tech"). If a node with this topic exists I want the transaction to return the topic_id. If not, I want it to return a boolean value. How to do this in Cypher and then using NEO4J bolt driver for python.
I can always extract all the topics and search for the particular name using python from returned response but I think this is something my database should do.