[Fixed] How to enable `ignoreUndefinedProperties` in node js


I am developing a REST api for my application in Nodejs and Express. But each time i try to send a request I get an undefined error. Please how can i enable ‘ignoreundefinedproperties’


once you import the firebase-admin sdk (in Typescript) like this

import * as firestore from "firebase-admin";

then you just need to set the setting like this :

const db = firestore.firestore();
db.settings({ ignoreUndefinedProperties: true })

Leave a Reply

(*) Required, Your email will not be published