5 ms·
Hi! It was a bit of both fun and work ;) I use graphile and didn't want to have to implement a resolver in JavaScript, keeping logic and integrity of auth syst
by pyramation 6y ago
Hi! It was a bit of both fun and work ;)
I use graphile and didn't want to have to implement a resolver in JavaScript, keeping logic and integrity of auth systems in the database.
- e12e 6y agoOn the other hand, one could also write js in postgres: https://www.postgresql.org/docs/13/external-pl.html https://www.postgresql.org/docs/13/external-pl.html https://github.com/plv8/plv8 https://github.com/plv8/plv8
- pyramation 6y agoyea totally! I love plv8... it's actually how I got started with postgres functions. I ultimately switched to native PG. There were known memory leaks in plv8 and eventually after learning pl/pgsql it became more natural and clean, plus AWS at the time didn't support plv8 which was another incentive not to use language extensions