András Tóth
András Tóth
While migrating a project to version 21.12.0 I was encountering this issue: still there's no static property like this on the type working nor there's any workaround apart from casting...
@mikehardy The minimal reproduction: ```typescript import { FieldPath } from '@react-native-firebase/firestore'; // version 21.12.0 console.log('!!!! HELLO', (FieldPath as any).documentId()); ``` Logs: ``` Android Bundled 8292ms index.js (3393 modules) LOG !!!!...
> Your reproduction is for react-native-firebase. I need to know if this works for firebase-js-sdk or not. If it works there then it is a feature gap here and we...
> If you really need this [...] **Update** Now that I understood the code a bit better I have found what was the intention. - let's say we have a...
Update: @mikehardy I've found it in `firebase/firestore` version `10.3.1` in the type definition: ```typescript // source: @firebase/firestore/dist/index.d.ts /** * Returns a special sentinel `FieldPath` to refer to the ID of...
@mikehardy Sorry for the late reply, I've run into this requirement again and managed to test out `new FieldPath('__name__')`. The situation was this: - we have a collection of `{...
I don't think this has been fixed, so I'd ask the bot to please reopen it.
@kennedyjosh Did the potential fix work out? If so, would you mind sharing from where can the working version be downloaded from?