Restrictive path search
GQL provides path search prefixes to restrict the number of paths and assist in finding the shortest path.
In this section, we introduce the fundamental path search prefixes – ALL and ANY. In the next section, we will explore another set of path search prefixes that facilitate shortest path discovery.
ALL path prefix
The ALL path prefix is used to return all matching paths. If omitted, the ALL prefix is applied by default.
You can create the graph shown in Figure 7.3 by using the following queries:

Figure 7.3: Example graph for testing the ALL path prefix
Quick tip: Need to see a high-resolution version of this image? Open this book in the next-gen Packt Reader or view it in the PDF/ePub copy.
The next-gen Packt Reader is included for free with the purchase of this book. Scan the QR code OR go to packtpub.com/unlock, then use the search bar to find this book by name. Double-check the edition shown to make sure...