-
|
In some documentation and tutorials I see path queries expressed as follows: Elsewhere I see What's the difference? When should I use one over the other? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Guessing you're thinking of
|
Beta Was this translation helpful? Give feedback.
Guessing you're thinking of
config.hasFlow?hasFlowPathspecifiesPathNodes, which are used to produce the path explanation that accompanies alerts from@kind path-problemqueries. Therefore it's useful specifically in theselectclause of such a query.hasFlowon the other hand specifies plain oldNodes, which are useful for other purposes -- maybe navigating to related dataflow nodes, such as from a call node to its arguments. If you're not selecting these nodes in apath-problemquery, this saves you a.getNode()to access aPathNode's underlyingNode.