Code Monkey home page Code Monkey logo

Comments (7)

wovalle avatar wovalle commented on May 24, 2024

Hey, thanks for contacting! I'm currently on vacations. I'll be able to check this out next week.

from fireorm.

wovalle avatar wovalle commented on May 24, 2024

Recently I discovered an error that might be causing this issue. You cannot access SubCollections of entities initialized by BaseFirestoreRepository.Create method (more info in #51).

Looking at the code in your repo, you're not using the Create method (so you shouldn't be affected by the previous error). I tried to replicate your issue here but the update worked just fine. Am I skipping something?

from fireorm.

wovalle avatar wovalle commented on May 24, 2024

Hey @maxxinnova ! have you had time to check my last comment? I recently fixed #51. Are you having any other error?

from fireorm.

maxxinnova avatar maxxinnova commented on May 24, 2024

from fireorm.

maxxinnova avatar maxxinnova commented on May 24, 2024

I upgraded to the latest version (0.6.4) and got an initialization error. The problem still exists on 0.6.3.

from fireorm.

wovalle avatar wovalle commented on May 24, 2024

Yesterday I realized what could be causing this: Trying to save collections (which have subcollections set in the object) might throw errors with real firestore but is doing just fine in the unit tests (since I use a mock database). Will check today.

About the Initialization error, you need to call Initialize(firestore) (with firestore being the instance of admin.firestore()) before you declare your Collections. Sorry that we have no documentation of this. I'll invest heavily in documenting the library soon.

from fireorm.

whateverbot avatar whateverbot commented on May 24, 2024

🎉 This issue has been resolved in version 0.6.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

from fireorm.

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.