Hi all,
Under v2 syntax, using v.getAttr() == attr as condition in the where clause always results in error “No type can be inferred for v.getAttr() == attr”.
Thanks
Hi all,
Under v2 syntax, using v.getAttr() == attr as condition in the where clause always results in error “No type can be inferred for v.getAttr() == attr”.
Thanks
Try e.getAttr( attrName, attrType )
Example e.getAttr(“rating”, “DOUBLE”). Rating is your attribute you are looking for, and you need to specify the data type. In this example I have Double, you might want STRING, or INT dependent on the data you reading.
https://docs.tigergraph.com/gsql-ref/current/querying/func/edge-methods#_getattr