How to enable `ignoreUndefinedProperties` in node js Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of How to enable `ignoreUndefinedProperties` in node js without wasting too much if your time.

The question is published on by Tutorial Guruji team.

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 })
We are here to answer your question about How to enable `ignoreUndefinedProperties` in node js - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji