I'm currently working on creating a where clause for a firebase collection reference:
this.allItineraries = firebase
.firestore()
.collection(`itinerary`);
Here is the issue with the where clause:
return this.allItineraries.where('userId', '===', this.userId);
However, when attempting to compile the program, an error occurs:
[ng] ERROR in src/app/services/data.service.ts(45,55): error TS2345: Argument of type '"==="' is not assignable to parameter of type 'WhereFil
This problem arises even though the structure of the where clause seems correct based on firebase's examples.