Comments (3)
Yes, this syntax would be great but it's impossible to implement. We should run the arrow "lambdas" in the database or get some kind of "exrpression object" as a return value. Neither of these can be implemented with javascript and relational databases.
from objection.js.
could not possibly create a parse ?
from objection.js.
Well if you give the expressions as strings like .where('x => x.age > 40')
it would be possible, but then why wouldn't we just write .where('age > 40')
. Anyways I don't think this is a good idea.
from objection.js.
Related Issues (20)
- Array of uuid column relation HOT 1
- Query to Many-to-many using Objection not working HOT 5
- QUESTION: How to get nested virtualAttribute data for a Model's ? HOT 1
- Postgres Pagination page() fetch one duplicate field if created_at value are the same
- new afterTransaction hook
- Updating using extra in related query
- Multiple Insert + OnConflict + Ignore result in json parsing issues.
- onError() handler is sometimes called with internal ReturnNullException
- upsertGraph() calls $beforeUpdate() on empty relates
- Add support for arm architectures in docker-compose.yml HOT 8
- Is it possible to "override" the default FROM of a Model query? HOT 3
- `FirstMethod` results in Type instantiation is excessively deep and possibly infinite
- `withGraphFetched` doesn't result `runAfter` modification
- orderBy in modifiers doesn't work
- [insertAndFetch]: Error: undefined passed as an item in argument #1 for 'whereInComposite' operation, in parallel queries
- Solution for Fixing Binding Issues with Array in JSON Field in `HasManyRelation`
- Subquery value not provided in beforeUpdate
- Is there a way to extend the insert function in a customQueryBuilder so that it automatically handles duplicate key errors?
- Error Handling from docs completely not working
- Table name with mixed case
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from objection.js.