Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support all firebase method for saving data #3

Open
RainerAtSpirit opened this issue Nov 24, 2015 · 1 comment
Open

Support all firebase method for saving data #3

RainerAtSpirit opened this issue Nov 24, 2015 · 1 comment

Comments

@RainerAtSpirit
Copy link

It looks like that currently firebase-aurelia add only implements firebase push method.

https://github.com/PulsarBlow/aurelia-firebase/blob/master/src/collection.js#L23

add(item:any) : Promise {
    return new Promise((resolve, reject) => {
      let query = this._query.ref().push();
      query.set(item, (error) => {
        if (error) {
          reject(error);
          return;
        }
        resolve(item);
      });
    });
  }

It would be useful to support the other methods like set update transaction as well.
https://www.firebase.com/docs/web/guide/saving-data.html

@PulsarBlow PulsarBlow added this to the 0.3.0-beta milestone Nov 25, 2015
@PulsarBlow
Copy link
Owner

Hi @RainerAtSpirit

set and update are planned for the next release (0.3.0-beta)

Other advanced features like transaction, query filters/limits are on the roadmap too and will be release in a future version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants