Comment

Comment by giorgioz

I just dislike the syntax in Fauna:

var createP = client.query( q.Create( q.Collection('test'), { data: { testField: 'testValue' } } ) )

https://docs.fauna.com/fauna/current/drivers/javascript

Why those capitalized functions names .Create() and .Collection()? Also the fact that you have to pass around that q. Maybe that could be changed with: let { Create, Collection} = q

I care about the syntax of the libraries I use and Fauna seems clumsy.

parent giorgioz 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton