Skip to content

Firestore.FieldName marked as error #781

Discussion options

You must be logged in to vote

not sure if FieldValue is exported in db, to access fieldValue object in extensions or derivatives you can require it

  const { FieldValue } = require("firebase-admin/firestore");

while if you want you use it in webhooks which is esm only, you can import it like so

 const {FieldValue} = await import('@google-cloud/firestore');

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by harinij
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants