Giter VIP home page Giter VIP logo

Comments (7)

superwoou avatar superwoou commented on July 1, 2024 1

Creates a document referred to by this DocumentReference with the

There is the documentation for create on google cloud firestore, not on firebase firestore.
This is only for firebase-admin. (Not for client)

from firestore-jest-mock.

fabien-renaud avatar fabien-renaud commented on July 1, 2024

Now that I think of it, it would be great do the same for WriteBatch.create() (batchCreate)

from firestore-jest-mock.

sbatson5 avatar sbatson5 commented on July 1, 2024

I agree! This would be a great addition. I can try to set aside some time this week to add it, unless you want to take a stab at the PR!

from firestore-jest-mock.

fabien-renaud avatar fabien-renaud commented on July 1, 2024

Hi @sbatson5, did you have time to take a look? I put this issue aside at work, but I believe this feature would be helpful!

from firestore-jest-mock.

sbatson5 avatar sbatson5 commented on July 1, 2024

Hi @sbatson5, did you have time to take a look? I put this issue aside at work, but I believe this feature would be helpful!

I was going to work on this today, but I'm actually having trouble finding doc().create in the firestore documentation. Every example I see about creating a document has set as the method used. I just want to make sure we recreate it in the correct way, but I've personally never used create. Do you have a link to documentation of this function being used?

from firestore-jest-mock.

fabien-renaud avatar fabien-renaud commented on July 1, 2024

I have the exact same documentation @superwoou

from firestore-jest-mock.

firemuzzy avatar firemuzzy commented on July 1, 2024

as of now it is in the google firestore must have been added to match
https://cloud.google.com/nodejs/docs/reference/firestore/latest/firestore/documentreference

from firestore-jest-mock.

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.