Comments (7)
Hey, thanks for contacting! I'm currently on vacations. I'll be able to check this out next week.
from fireorm.
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.
Hey @maxxinnova ! have you had time to check my last comment? I recently fixed #51. Are you having any other error?
from fireorm.
from fireorm.
I upgraded to the latest version (0.6.4) and got an initialization error. The problem still exists on 0.6.3.
from fireorm.
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 Collection
s. Sorry that we have no documentation of this. I'll invest heavily in documenting the library soon.
from fireorm.
The release is available on:
Your semantic-release bot
from fireorm.
Related Issues (20)
- release not working HOT 1
- Timestamps returned by `BaseFireStoreRepository` methods such as `findById` do not match the Collection type HOT 4
- Can't resolve 'class-validator' typescript HOT 1
- Support for BulkWriter HOT 2
- Getter methods decorated with @Ignore() are still saved HOT 2
- plainToClass is undefined HOT 2
- TypeError: classTransformer.plainToClass error when trying to find document from DB HOT 2
- Rename id in collection to _id HOT 2
- Feature Request: Support generic validation HOT 3
- The result of build has some nulls removed
- Error: Collection with name ClubPlayers has already been registered HOT 1
- how to parameterize the complex query options? HOT 1
- There is a way to auto query subcollections? HOT 2
- If we are inside a transaction, our subcollections should also be TransactionRepositories HOT 1
- Querying subcollection of subcollection seems to inject random doc number on its path HOT 1
- SubCollection does not create HOT 2
- Project Status HOT 2
- Querying missing fields HOT 3
- Add firestore timestamps to entities HOT 1
- Error: Firestore must be initialized first - on using customRepository HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fireorm.