We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We expect to get a snapshot with the right type, but instead, we get unknown.
Downgrading to 11.11.0 fixes the issue
The text was updated successfully, but these errors were encountered:
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Sorry, something went wrong.
+1
I have been following this pattern:
// converter from https://stackoverflow.com/questions/74456704/how-to-type-usefirestore-using-typescript-interfaces export const firebaseConverter = <T>() => ({ toFirestore: (data: PartialWithFieldValue<T>) => data, fromFirestore: (snap: QueryDocumentSnapshot) => snap.data() as T, }); const userDocQuery = admin.firestore().collection('users').doc(userId).withConverter(firebaseConverter<User>());
But this does not work with Version 12.
No branches or pull requests
We expect to get a snapshot with the right type, but instead, we get unknown.
Downgrading to 11.11.0 fixes the issue
The text was updated successfully, but these errors were encountered: