import { Record } from "https://deno.land/x/neo4j_driver_lite@5.14.0-alpha01/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)
Type Parameters
optional
Entries extends RecordShape = RecordShapeoptional
FieldLookup extends RecordShape<keyof Entries, number> = RecordShape<keyof Entries, number>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(n: number): any