Phoenix-Codeworx / phoenix-framework

A plugin-based graphql server framework built on Bun, Apollo, Mongo, and Express. Rising from the ashes of Reaction Commerce
MIT License
3 stars 0 forks source link

feat: create "transformation pipelines' #34

Open brent-hoover opened 5 months ago

brent-hoover commented 5 months ago

One of the cool features that Reaction had that I believe @aldeed came up with is the way that you could use functionsOfType to define a "pipeline" of functions that, for example, a cart might flow through on placeOrder so any plugin could insert itself into that to apply a discount for example.

I think we should reimplement it but possibly make it more explicit. Some ideas might be: