GithubHelp home page GithubHelp logo

Comments (3)

gautema avatar gautema commented on July 27, 2024

Hi.

There is no built in way to relate one entity to another. I'm not sure I understand what you want, but you if you want to check if another aggregate exists or has some property, you could load several aggregates in the command handler or query against a read model here.

If you want to get a specific version of an aggregate there is currently no support for it. Again I think I need a bit more context to understand the problem completely.

from cqrslite.

miltoncamara avatar miltoncamara commented on July 27, 2024

Assuming that I have a product entity and this product is related to an order, at a given time the product value was "100" but today this value is 50. What I would like to know is, what was the value of that order, remembering that it was 50 and today it is 100.

from cqrslite.

gautema avatar gautema commented on July 27, 2024

I see. I think I would have solved this by saving the value in the order when it was made. It could read of a readmodel. I never do reads from other aggregates directly, but use read models to get their state. Anyway, there is no built in support to this scenario in CQRSlite.

from cqrslite.

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.