Objection.js: Objection vs Knex

Created on 8 Jun 2016  路  4Comments  路  Source: Vincit/objection.js

Hello,

Seems like a very cool library but I'm a bit confused about what knex provides and what objection adds...Is there somewhere I can read about it? thanks!

EDITED: nevermind. Thanks :)

question

Most helpful comment

@elhigu I'd be specific about the distinction between "schema" and "schema validation" (to avoid potential confusion), but other than that, sums it up! 馃憤

All 4 comments

Knex provides basic query builder, transactions, connection pooling.

On top of that Objection.js provides models, relations, schema for models attributes and some more advanced features to insert / fetch nested models and JSONB query support for postgresql... and probably much more that I forgot to mention.

@elhigu I'd be specific about the distinction between "schema" and "schema validation" (to avoid potential confusion), but other than that, sums it up! 馃憤

Maybe this can be closed (original post edited, post enlightenment).

This stuff kind of relates to #11 if also knex vs. objection distinction is described there some day.

Was this page helpful?
0 / 5 - 0 ratings