Git Product home page Git Product logo

Comments (5)

pifantastic avatar pifantastic commented on June 24, 2024

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.

malkomalko avatar malkomalko commented on June 24, 2024

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.

pifantastic avatar pifantastic commented on June 24, 2024

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!

pifantastic@d8a0b45

from fastlegs.

nickretallack avatar nickretallack commented on June 24, 2024

Wait, you have many through working? How?

from fastlegs.

pifantastic avatar pifantastic commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.