graffle-js/graffle

Permit eliding alias indicator

jasonkuhrt opened this issue · 0 comments

Perceived Problem

Aliases are more verbose than needed in scalar cases:

await graffle.query.$batch({
  id: ["x", true]
})

Ideas / Proposed Solution(s)

Make indicator optional:

await graffle.query.$batch({
  id: ["x"]
})

We could also/or export a utility function:

await graffle.query.$batch({
  id: alias("x")
})