Code Monkey home page Code Monkey logo

Comments (7)

daffl avatar daffl commented on June 29, 2024

I was thinking about the exact same thing. We could set params.changefeed to the changefeed values and do both things at once.

from feathers-rethinkdb.

daffl avatar daffl commented on June 29, 2024

I was also debating that for the 1.0 release we may want to make watching changefeeds an explicit option due to some of the caveats I outlined in #76

from feathers-rethinkdb.

maksnester avatar maksnester commented on June 29, 2024

Agreed, watch should be false by default. As for me all events for any services in feathers should be switchable but issue not about it...
So, can I create a PR for changefeed? My personal interest in old_value for update event, new value available in hook.result. So what exactly changefeed field should contains?

from feathers-rethinkdb.

maksnester avatar maksnester commented on June 29, 2024

@daffl pss, so what about PR?

from feathers-rethinkdb.

maksnester avatar maksnester commented on June 29, 2024

@daffl so what do you say? My proposal is to have:
changefeed = {
old_val?:Object;
new_val?:Object;
}

and new_val will be duplicated in hook.result for hook behavior consistency.

from feathers-rethinkdb.

stevenmathews avatar stevenmathews commented on June 29, 2024

@daffl This would be very useful to me as I'm trying to create an after hook that only sends an email if a user role gets changed directly from the database. Not sure how to accomplish this without the old_val also.

from feathers-rethinkdb.

daffl avatar daffl commented on June 29, 2024

Closing, see #119

from feathers-rethinkdb.

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.