question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Referenced documents do not have id

See original GitHub issue

Reproduction

N / A

Steps to reproduce the bug

Use useDocument for a document that has at least one reference

Expected behavior

Referenced document has id property

Actual behavior

Referenced document does not have id property

Additional information

I guess the fix should be somewhere here https://github.com/vuejs/vuefire/blob/ae85a41a4614c7b4b3526c79aebfb8ac8d6853fd/src/firestore/bind.ts#L123

A default converter should be added for refs here.

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
michaelpelletiercommented, Dec 26, 2022

Just popping back to say patch-package with donatas-luciunas’s original suggestion worked like a dream.

0reactions
donatas-luciunascommented, Dec 22, 2022

Thanks for recommendation.

I use 2.2.5 and it gives id property on referenced document.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Voter ID Laws - National Conference of State Legislatures
Proponents see increasing requirements for identification as a way to prevent in-person voter impersonation and increase public confidence in ...
Read more >
Change where your files are stored in Photos on Mac
When you import photos and videos into Photos, they're copied to the Photos library in the Pictures folder. If you prefer, you can...
Read more >
What is a reference? - YouTube Help
References can also be created by uploading spreadsheet templates. From a reference file, YouTube creates a digital fingerprint that Content ID compares ...
Read more >
Database References — MongoDB Manual
Manual references save the _id field of one document in another document as a reference. Your application runs a second query to return...
Read more >
Debunking Misinformation on Photo ID
Kobach argues that (1) voter ID laws will not actually prevent any eligible citizens from voting; and (2) they will prevent in-person voter ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found