Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permit eliding alias indicator #1179

Open
jasonkuhrt opened this issue Oct 9, 2024 · 0 comments
Open

Permit eliding alias indicator #1179

jasonkuhrt opened this issue Oct 9, 2024 · 0 comments

Comments

@jasonkuhrt
Copy link
Member

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")
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant