elersong / fireorm24

ORM for Firebase Firestore 🔥 updated for 2024
MIT License
1 stars 0 forks source link

SubCollection does not create #38

Closed elersong closed 2 months ago

elersong commented 2 months ago

darmie commented on Oct 2, 2022

subCollection.create does not create the subcollection inside of the parent collection.

This used to work before, I am not sure what changed.

Original Issue

elersong commented 2 months ago

Found in /test/functional/3-subcollections.spec.ts

    const batch = repo.albums.createBatch();

    await rush.albums.create(secondAlbum);
    batch.create(fourthAlbum);
    batch.create(eighthAlbum);

    await batch.commit();

The jest test shows that the secondAlbum record gets created and is queryable.

As of 6ad447a I can't reproduce this problem. The integration test suggests this functionality is operational.