TypeDBT
TypeDB4mo ago
13 replies
rajivranganath

How to use `analyze()`?

In the documentation link here there is a mention of
analyze()
function.

Suppose I have the following query.

match
$book isa paperback, has isbn-13 "9780446310789";
$line isa order-line (order: $order, item: $book);
delivery (deliverer: $courier, delivered: $order, destination: $address);
fetch {
    "id": $order.id,
    "quantity": $line.quantity,
    "status": $courier.name,
    "address": $address.street,
};


What would be the correct syntax to run
analyze()
on this query?
Was this page helpful?