Writing openCypher Queries in GSQL Web Shell

To write openCypher queries in the GSQL Web Shell, follow these steps:

INTERPRET QUERY does not support distributed query mode
  1. Open GSQL Web Shell in your browser and log in.

  2. Run INTERPRET OPENCYPHER QUERY

    INTERPRET OPENCYPHER QUERY () FOR GRAPH communication_mau {
    MATCH (u:user)
    WHERE u.id = "test"
    RETURN u
    }
  3. Create an openCypher query

    CREATE DISTRIBUTED OPENCYPHER QUERY get_user_by_id2() FOR GRAPH communication_mau {
    MATCH (u:user)
    WHERE u.id = "test"
    RETURN u
    }
  4. Install the openCypher query

    INSTALL QUERY get_user_by_id2
  5. Run installed openCypher query

    RUN QUERY get_user_by_id2()