Skip to content

Add document ref as readonly to document #324

Closed
@hamishjohnson

Description

@hamishjohnson

You can use this.$firestoreRefs to get the refs of documents.

I think it would be cleaner to use ref as a non-enumerable, read-only property like the ID. I would suggest that using the dollar syntax would avoid conflicts.

So then you can access the ref by doc.$ref

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions