-
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
?hasFlowPath
specifiesPathNode
s, which are used to produce the path explanation that accompanies alerts from@kind path-problem
queries. Therefore it's useful specifically in theselect
clause of such a query.hasFlow
on the other hand specifies plain oldNode
s, 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-problem
query, this saves you a.getNode()
to access aPathNode
's underlyingNode
.