Home »
MCQs »
Neo4j MCQs
Suppose the MERGE command searches for a given pattern in the graph what will happen if it does not exist in the graph?
34. Suppose the MERGE command searches for a given pattern in the graph what will happen if it does not exist in the graph?
- It will show you the ERROR
- It will show no result
- It generates a new node/relationship and returns the outcomes.
- All of the above
- None
Answer: C) It generates a new node/relationship and returns the outcomes.
Explanation:
The Neo4j CQL MERGE command searches the graph for a particular pattern. It returns the results if it exists. It generates a new node/relationship and delivers the results if it does not exist in the graph.