Are there any open source projects that serve as good demonstrations good server code with Knex, or some other SQL DB libs? I’m looking for something with some degree of complexity, like Telescope/Nova. I am particularly interested in GraphQL, although GraphQL is new, so any open source projects will do.
- async code can be really tricky. When you have business logic that needs to fetch things from different tables, and needs one result before it can fetch the next one, this code can be hard to follow (regardless of whether you use promise.then() syntax or async/await). But this is a problem inherent to the language, so probably nothing can fix this.
What data related libs do you use? How do you structure your code?
I’m also happy to share a little more about my experiences using Postres/Knex over the last couple months (spoiler: JSONB fields, while they sound cool for someone coming from MongoDB, are mostly a pain)