import { Record } from "https://deno.land/x/neo4j_lite_client@4.4.6/mod.ts";
Records make up the contents of the Result, and is how you access the output of a query. A simple query might yield a result stream with a single record, for instance:
MATCH (u:User) RETURN u.name, u.age
This returns a stream of records with two fields, named u.name
and u.age
,
each record represents one user found by the query above. You can access
the values of each field either by name:
record.get("u.name")
Or by it's position:
record.get(0)
Methods
entries(): IterableIterator<[string, any]>
Iterate over results. Each iteration will yield an array of exactly two items - the key, and the value (in order).
Run the given function for each field in this record. The function will get three arguments - the value, the key and this record, in that order.
get(key: keyof FieldLookup | number): any