appy-one / acebase-server

A fast, low memory, transactional, index & query enabled NoSQL database server for node.js that easily syncs with browser and node.js clients and servers
MIT License
31 stars 14 forks source link

read/write rules undefined env values #70

Closed donl closed 1 year ago

donl commented 1 year ago

When evaluating server rules, the variables data, newData, and root are undefined.

Is supporting any of these doable in the near future-- short of a full refactoring as mentioned in the source?

appy-one commented 1 year ago

I'll check if recent code changes made implementing this possible/easier

appy-one commented 1 year ago

Hi @donl I released this in v1.17.0 with updated docs. Note that the implementation is different from Firebase's, not less powerful though! Let me know if all works as expected

donl commented 1 year ago

Awesome! Looking forward to taking it for a spin! Thanks