Giter VIP home page Giter VIP logo

Comments (2)

Jimmy89 avatar Jimmy89 commented on June 28, 2024 1

Hello @naorpeled
Yes, you're right about the assumption that I only want to write at creation time (the default value). I do not use dependsOn to check for changed property (as for that you could use onUpdate: true and pass all properties to calculate the default), but I do use it as on the keys (e.g. key4) also uses a function to calculate the default based on another property.
I evaluated my code and found out that dependsOn only needs to be used for properties that have a default value generated, in which case I can shorten the dependsOn graph. Thank you for that insight.

from dynamodb-toolbox.

naorpeled avatar naorpeled commented on June 28, 2024

Hey @Jimmy89,
in this case I think that dependsOn is redundant, no?
it's a field that you want to only write on creation and not during updates, right? 🙏

Regarding changing the dependsOn logic to allow checking if at least one property changes also makes sense to me but need to give this more thought.
Probably worth creating additional configuration for that as I wouldn't want to accidentally cause cases where some keys would be malformed (e.g. POSTED-AT_undefined#USER_12345).

from dynamodb-toolbox.

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.