GithubHelp home page GithubHelp logo

Comments (34)

aputinski avatar aputinski commented on July 21, 2024

@gpbmike I started hacking on this a while ago, unfortunately I just haven't had time to work on it. Hopefully I can add this feature in soon.

from emberfire.

gpbmike avatar gpbmike commented on July 21, 2024

@aputinski no worries, thanks for you work. 👍

from emberfire.

outaTiME avatar outaTiME commented on July 21, 2024

👍

from emberfire.

aputinski avatar aputinski commented on July 21, 2024

#63

from emberfire.

aputinski avatar aputinski commented on July 21, 2024

#83

from emberfire.

brandensilva avatar brandensilva commented on July 21, 2024

👍

from emberfire.

gpbmike avatar gpbmike commented on July 21, 2024

I think this is actually pretty straight forward and I have it working with the project I'm working on, except for one part that I could use some help on.

When a child is removed from the resulting Query, I don't know if it has been removed because another child was added and the removed child was pushed off the query, or if it was removed on the Firebase end and the query is now reflecting that. The difference would be if I want to update the store or not.

from emberfire.

jayphelps avatar jayphelps commented on July 21, 2024

Status? This is blocking my team from considering Firebase.

from emberfire.

gpbmike avatar gpbmike commented on July 21, 2024

@jayphelps this is my implementation with the aforementioned child_removed caveat: https://github.com/webhook/webhook-cms/blob/173ba55402eac39b07aa7873081f300e888337c5/app/adapters/application.js

from emberfire.

startupandrew avatar startupandrew commented on July 21, 2024

@jayphelps -- if you want to know if the data is still there, just attached a "value" callback to the specific location where the data lives, and if it's null you'll know the data has been deleted.

from emberfire.

Zuur avatar Zuur commented on July 21, 2024

@gpbmike Thanks very much for sharing your solution; I'm just starting with schema design and the availability of priorities will affect the implementation of a few things - even if limit() is problematic at the moment it's enough to get me off the ground.

If you are able to implement the limit fix as @jayphelps suggests, or have any other updates here please post back again!

from emberfire.

jayphelps avatar jayphelps commented on July 21, 2024

@aputinski did you have a solution to the child_removed issue described above (also shown here)?

from emberfire.

Zuur avatar Zuur commented on July 21, 2024

Oh, just realised that @gpbmike code does not have support for priorities, and in fact this issue does not mention priorities in the title either so does not really replace issue #63 which was closed above.

By my thinking, priorities, startAt and endAt offer significant functionality as a feature set and will impact the way a database(/firebase) is structured to begin with, where as limit() as a tool for processing data in batches (mainly pagination - which is not so much of a priority as things that affect a project's initial data schema).

Does anyone have any information on how to go about setting priorities currently? Can this issue be updated to include priorities as well so that that requirement isn't lost?

Edit as per jayphelps's comment below

from emberfire.

jayphelps avatar jayphelps commented on July 21, 2024

@Zuur I think you mean @gpbmike? I haven't posted any code.

from emberfire.

oskarrough avatar oskarrough commented on July 21, 2024

Any news on this?

from emberfire.

brunolemos avatar brunolemos commented on July 21, 2024

+1

from emberfire.

Zuur avatar Zuur commented on July 21, 2024

+2

from emberfire.

brunolemos avatar brunolemos commented on July 21, 2024

@gpbmike could you help us implementing Priority support in your code?
It would help us a lot. Thanks.

I found this other solution, but haven't tried it yet: https://github.com/rlivsey/fireplace

from emberfire.

Ghostavio avatar Ghostavio commented on July 21, 2024

+3

from emberfire.

ivohanke avatar ivohanke commented on July 21, 2024

strange, this is quiet essential... any news??

from emberfire.

mwils avatar mwils commented on July 21, 2024

+4

from emberfire.

brunolemos avatar brunolemos commented on July 21, 2024

-1, not using firebase anymore. #meteor

from emberfire.

gpbmike avatar gpbmike commented on July 21, 2024

For those of you still waiting on official support, this is what I've been using for a while now.

https://github.com/webhook/webhook-cms/blob/master/app/adapters/application.js

Feedback welcome of course.

from emberfire.

sararob avatar sararob commented on July 21, 2024

@gpbmike we definitely want to add this. Thanks for putting something together. Firebase has added new querying functionality (see https://www.firebase.com/docs/web/guide/retrieving-data.html#section-queries), and we're going to be working on adding query support in the coming weeks.

from emberfire.

gpbmike avatar gpbmike commented on July 21, 2024

The adapter extension I posted above supports some of the new querying functionality.

  • orderBy
  • limitToFirst
  • limitToLast
  • startAt
  • endAt

from emberfire.

JarrodCTaylor avatar JarrodCTaylor commented on July 21, 2024

The ability to query for specific data seems to be basic fundamental functionality of working with any database. In addition to the list above equalTo is also crucial to use emberfire in a serious manner.

👍 +1

from emberfire.

bttf avatar bttf commented on July 21, 2024

@gpbmike thanks for your solution. I am able to query FB. I was also able to implement equalTo by adding just a few lines; fairly easy. Thanks again.

from emberfire.

wheredoesyourmindgo avatar wheredoesyourmindgo commented on July 21, 2024

+1

from emberfire.

Emerson avatar Emerson commented on July 21, 2024

Waiting on this as well - hard to go beyond the hello world use case without proper query support

from emberfire.

jayphelps avatar jayphelps commented on July 21, 2024

@Emerson and others, check out #169

from emberfire.

brendanoh avatar brendanoh commented on July 21, 2024

I love the serverless pattern and Firebase Hosting is great but without the ability to really send queries I dont see how anyone could build anything substantial using EmberFire.

Let's assume I have an App that needs to do more that just Select by ID and Select All

How do you use this library if you cannot query Firebase?
Is there a way to pass native queries in via the data adapter?

Lets assume I have a user and I want to show all of his Posts but the Firebase repository has more than just his posts stored there. I cannot figure out how to pass in a query param (user = 5) to make that work in a normal way. There doesn't seem to be a way to Sideload either. One thing I can do is if the user has an array of Post Ids in their user model then I can iterate over them and make dozens of API calls into Firebase to get each post but that seems awful.

@katowulf thinks this is "not particularly challenging" but I cannot find any examples and I do not want invent the wheel. How do I 'drop to the Firebase API and use it directly' as I do not see examples, patterns or best practices.

In need of support / guidance / info.

Brendan

from emberfire.

dustinbrownman avatar dustinbrownman commented on July 21, 2024

@gpbmike This looks great! I'm curious what version of firebase you're using. I get the undefined is not a function error whenever I try to call a querying method on ref (so ref.limitToLast(n) blows up).

from emberfire.

gpbmike avatar gpbmike commented on July 21, 2024

@dustinbrownman you need to be using version 2.

from emberfire.

tstirrat avatar tstirrat commented on July 21, 2024

landed in EmberFire 1.4.0+

from emberfire.

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.