Giter Site home page Giter Site logo

Comments (1)

cdussud avatar cdussud commented on June 15, 2024

Hey Gustav. Each activity only holds data specifically about that activity.

For example, a 'completed_order' event would have a total amount paid, but not necessarily the state it was purchased in.

To track the exact list of items purchased you could make a 'purchased_item' activity for each individual item in the order. That activity could have item sku, item name, item category (i.e. grocery).

It helps to also think about who is the customer for the activity stream too. In your case the customer could be a store instead of a person.

So the 'completed_order' event's 'customer' would be store_123. The store would have metadata saying its country / state. So from that you have all the pieces to put together the queries you mentioned.

Let me know if that makes sense!

from activityschema.

Related Issues (9)

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.