AQL Template Tag Literal. ES Module with no dependencies.
To work with AQL Queries anywhere.
import { aql } from "https://raw.githubusercontent.com/Tnifey/aql-tag/master/src/mod.ts";
// or with tag
import { aql } from "https://raw.githubusercontent.com/Tnifey/aql-tag/0.0.3/mod.ts";
Works like AQL Helpers.
TL;DR
// import { aql } from '...'
const arr = [1, 2, 3];
const query = aql`for u in ${arr}`;
query returns
{
query: "for u in @value0",
bindVars: { value0: [1,2,3] },
}
Apache License 2.0
Slightly modified by Tnifey
Source from: [https://github.com/arangodb/arangojs/blob/v6/src/aql-query.ts]
🥑