Comments (5)
I'm mega interested in this feature. Has there been any movement on this? Any knowledge to share before I take a crack at it?
from fastlegs.
we worked on this about a week ago but things came up. I see that you took a stab at putting some operations in. If you wanted to take a crack at it that'd be great.
just make sure belongsTo and One returns back an Object and not an array, and it can handle situations where there is nothing there (returning a blank object).
It'd be nice if you can tack on to the integration test.
Cheers!
from fastlegs.
Thanks @malkomalko. The Object vs. Array return is not something I handled properly, so I've fixed that. I'm now adding integration tests. Will pull request when I feel it's in a good spot. Thanks!
from fastlegs.
Wait, you have many through working? How?
from fastlegs.
Hi @nickretallack, I do have a basic "many" relationship working as seen here: https://github.com/pifantastic/FastLegS/blob/master/lib/fast_legs/base.js#L154
I've begun writing an integration test that uses a "many" relationship here: https://github.com/pifantastic/FastLegS/blob/master/test/integration/integration_test.js#L92
I've been working on other things lately but I'm getting back into my work with FastLegS so hopefully I will be ready for a pull of these changes into the main repo.
EDIT
I ended up taking a different direction that no longer required these relationships so the above links no longer reference the relevant code.
from fastlegs.
Related Issues (20)
- README Update? HOT 1
- in functionality is buggy. HOT 2
- FastLegs include/join for multi-relationship tables/ circular dependency HOT 3
- Full Text Search HOT 1
- $or doesn't seem to work HOT 2
- $or doesn't seem to work HOT 2
- Clearing values in database using null, '' or undefined does work HOT 1
- Distinct Clause
- Group By Clause
- Batch size option for bulk inserts HOT 1
- `order` no working HOT 2
- Make node 0.8 compatible HOT 1
- or null operator for WHERE clauses
- Support for auto created/updated timestamp columns
- Not Equal to Null Not Working HOT 4
- Limit/Offset Issue
- TypeError: Object 1 has no method 'forEach' HOT 3
- PostgreSQL Date Issue
- Support for FastLegS? HOT 2
- More complex Logic HOT 1
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 fastlegs.