-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
Firestore Roadmap #145
Comments
Small update: Things are working really well, I just released an alpha version. The reason is taking so much time is because there's a lot of edge cases for refs (embed documents into other documents) to handle 😆 |
Thanks for your hard work in supporting Firestore. When binding to a collection, is there a way to get the ID or ref of each document within the collection? |
it's the |
Thanks. I was using a collection with v-for on a component and binding to the object instead of binding on each property. This meant that the id prop in the component could not be found. Specifying a property for the id did the trick: |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
It works like a charm ! Thanks for your job |
@BernardMarieOnzo as noted in the first post:
Here's a direct link to the firestore branch's You might also find this medium article helpful as they walk through the end-to-end process of setting up and using Vue + VueFire + Firestore: Edit: Also note that while the syntax and usage is similar to the RTDB approach you linked to, the syntax and usage is different - eg. it matches the |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I haven't been able to do more for a long time. The packages have been stable for some time, I need to write documentation add support for RTDB and then I will publish a stable release. I will get some time to work on this during xmas. Hopefully I should be able to publish it before 2019 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
an update on this: Been really busy with work + personal life since January. I want to have at least the guide ready for both vuefire and vuexfire before releasing the version as stable. Especially because being able to support both RTDB and Firestore includes some breaking changes in exports to make the library tree shakable so people do not include code they don't need |
I just published a new version with support for RTDB. There are a few breaking changes to accomodate that it's a matter of renaming imports https://twitter.com/posva/status/1109175186694328322 There are also wip docs at https://vuefire.netlify.com/ (not final link). Feedback welcome |
Hi, I started to use If I'll be able to write some tests I can definitely contribute with docs and examples. |
@joelxr I think you could check how tests are written in this repository. We have our own mock for Firestore and we https://github.com/soumak77/firebase-mock for the RTDB but it should be able to mock both |
Hey @posva - Passing in the last doc and the .startAt(lastDocFromQuery) isn't returning results.
It would be great if vuexfire would hold on to these first and last document refs (hell they might be but I'm not seeing it). If these were to persist and be accessible somehow then folks wouldn't have to hit the database 3 times per page (after the first initial page, which would only have 2 DB calls). I'm 99.999% sure you have access to these first and last document refs within the By the way - thanks a million for the work on these packages, incredible work! My brain turns into a puddle of junk when I try to understand the code that goes into these wonderful tools. [edit]
Which the above probably could be done in a custom
Which I had to add another if check on:
So now when setting up vuex module:
This now gives |
@joemanfoo Thanks, I'm glad you like the library! If you manage to reproduce it, please open an issue with the repro. You can use one of the examples as a starting point: https://github.com/vuejs/vuefire/tree/master/packages/vuefire/examples |
Dear @posva, Thank you for creating and sharing this awesome project. I would like to use both the RTDB and Firestore in the same project. Is it just that the documentation around this is not yet available or is it currently hard to implement? Is there any chance you could provide a gist or point me in the right direction for implementing this? Thanks! |
@sebastiaan-de-vries you can use both, you need to follow both examples and use both plugins to support |
@joemanfoo Vuexfire 3.2.1 seems to have fixed the issue with non-enumerable properties being removed from the modified By the way, I was also looking into a way to get the last document's reference to get pagination done with a cursor by using the |
If I could make a suggestion for the cookbook...since I have struggled with this issue for a hot minute now; but I think I've got a workaround that kinda works. An example for Firebase Hosting that uses the reserved URL configuration would be nice. I've come up with the following code for my Firebase initialization (it's kind of simple because I don't use the GeoPoints or Timestamps): EDIT: Nevermind my code, it doesn't work...apparently Webpack (any by extension the Vue CLI service) doesn't allow mixing module types; so, I can't have an ES module with AMD or CJS exports. EDIT 2: I finally came up with a working solution. It's not the most elegant, but I think it would really help people come up with a working solution for a production application.
|
Really looking forward to the Pagination Cookbook... |
Any chance you could just add a non-enumerable UPDATE: OK ... I think I found the answer which I've just documented on StackOverflow. I see its in this RoadMap. I saw that |
Any solution to pagination? |
Well, hello there |
Thanks everybody for the feedback 🙏. I'm currently migrating the library and I hope to start releasing alphas soon. You can follow the advancement at #1241 |
It's time for vuefire to update to Cloud Firestore 🎉
In order to give you some visibility about the new version, here's a checklist with features. Feel free to ask about new things, I'll probably forget to add every single feature to the list.
Until the version becomes stable there may be breaking changes, but if you're using the current version of vuefire, don't worry, it won't affect you. The new version will be published under thenext
tag on npm, meaning that you can already play with it if you wantFirestore is now supported by the latest tag
Keep in mind, there're still no docs but you can check theexapmles/
folder and tests for inspirationFeatures
id
key usedVue.set
)If you find bugs, please, open a new issue (but make sure to check if it hasn't been fixed already 😛 )
if you want to check the ongoing work, it's on the firestore branch
The text was updated successfully, but these errors were encountered: