Home > OS >  NebulaGraph Database:How to query whether a tag of a vertex exists based on its id in version 3.0.1
NebulaGraph Database:How to query whether a tag of a vertex exists based on its id in version 3.0.1

Time:12-14

When using a graph database, there is such a requirement that it is necessary to query whether a certain tag of the vertex exists according to the id of the vertex. How to write this statement?

CodePudding user response:

After a lot of trials, I found a way to query a tag of the vertex exists based on its id. If you meet the same situation, try this statement:

match (v:t_out_corporation) where id(v)==‘123A123’ return v.t_out_corporation.cust_value;
  • Related