News for hackers. Stuff that matters.
Re:AWS Aurora Serverless v2: architecture, features, pricing... by evanweaver on Thursday March 25, 2021 @12:30PM (#26582270)
Fauna has no native syntax, instead it has language-specific DSLs. This helps with type safety and query composability but it does indeed lead to awkward syntactical situations when the host language and Fauna semantics don’t quite align.

The snippet in the grandparent post is JavaScript; is there an ORM or other library that has an example of an idiomatic JS or Typescript syntax that either of you would prefer?

Re:AWS Aurora Serverless v2: architecture, features, pricing... by mwakerman on Thursday March 25, 2021 @04:32PM (#26585016)
I’ve really enjoy writing queries in RethinkDB’s [REQL language](https://rethinkdb.com/docs/introduction-to-reql/)

> ‘r.table(“users”).filter(u => u(“email”).match(“.*@gmail.com$”)).run(conn)’

Re:AWS Aurora Serverless v2: architecture, features, pricing... by nicoburns on Thursday March 25, 2021 @12:55PM (#26582590)
Knex syntax (http://knexjs.org/) is reasonable. It's basically method chaining.
Re:AWS Aurora Serverless v2: architecture, features, pricing... by giorgioz on Thursday March 25, 2021 @02:04PM (#26583416)
mongodb is so well integrated with Javascript and JSON. db.collection().find({}) is just so fluent.

I find all those capitalized functions in Fauna weird. In most C based languages like Javascript functions are lowercase.

Would it be possible for the Fauna JS wrapper to also accept lowercased functions?