Docs missing info on reverse edge

I could not find info in the docs for the gsql syntace to create a reverse edge:
image

Can someone kindly please show the syntax for this?

Thanks

Hey gpadvorac,

please check here:
https://docs.tigergraph.com/dev/gsql-examples/common-applications#step-1-create-a-graph-model

CREATE VERTEX User (PRIMARY_ID id string)
CREATE DIRECTED EDGE Liked (FROM User, TO User) WITH REVERSE_EDGE = "Liked_By"

Best,
Bruno

1 Like

Thank you. I searched on “reverse” and could not find that. also it was not in this section:
https://docs.tigergraph.com/intro/gsql-101/define-a-schema#create-an-edge-type

Thanks again!

It is in the reference manual:
https://docs.tigergraph.com/dev/gsql-ref/ddl-and-loading/defining-a-graph-schema#with-reverse_edge

There’s no way to mention everything in the tutorials. It’s always a tradeoff what to include or omit in the tutorials.

Got it, and thank you for all the help and responses!