Traversal Inspection for properties used

Is there any way to inspect a traversal to figure out what properties are used throughout it?

I am looking at the traversal API / steps and can't see anything that looks like it would fulfill the purpose.

Something that would tell what properties are used, which are returned.

This would be useful if you had a case where you had several hundred properties on a vertex but maybe only check the label and return the id, meaning you don't need to know all the properties to execute the traversal, or maybe you only check one property or just return one.
Was this page helpful?