code: async function queryData(dgraphClient) {
      // Run query.
      const query = `query all($a: string) {
          all(func: eq(name, $a)) {
              uid
              name
              age
              married
              loc
              dob
              friend {
                  name
                  age
              }
              school {
                  name
              }
          }
      }`;
      const vars = { $a: "Alice" };
      const res = await dgraphClient.newTxn().queryWithVars(query, vars);
      const ppl = res.getJson();
  
      // Print results.
      console.log(`Number of people named "Alice": ${ppl.all.length}`);
      ppl.all.forEach((person) => console.log(person));
  }
docs: Query for data.