feat(reducers): support reference data type
See original GitHub issuehello
Do you want to request a feature or report a bug?
feature
What is the current behavior? data type
db.collection("posts").doc("QyJJKtQhNA2QeHFVqfCR") = {
content: String,
author: Reference // 'users/jRjjlMyTBENjvln3pQpGwKgdvAa2'
}
query
{ collection: 'posts', doc: postId }
result
{ content: '', author: DocumentReference }
A DocumentReference refers to a document location in a Firestore database and can be used to write, read, or listen to the location. The document at the referenced location may or may not exist. A DocumentReference can also be used to create a CollectionReference to a subcollection.
What is the expected behavior?
{ content: '', author: { displayName: '', avatarUrl: '' } }
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Understanding the magic behind StoreModule of NgRx ...
In this article we're going to dive deep into the internals of @ngrx/store package. We'll examine how state, reducers, store and actions work...
Read more >Primitive Data Types (The Java™ Tutorials > Learning the ...
The eight primitive data types supported by the Java programming language are: byte: The byte data type is an 8-bit signed two's complement...
Read more >Boston Gear: Speed Reducer, Gear Drive, Variable Speed ...
Boston Gear offers the industry's largest line up of reliable speed reducers, gearing and other quality drivetrain components. With well over a century...
Read more >Creating reference data types for sets - IBM
Enter a Name for this reference data type. For the Data type, select Reference Data Sets. For Owners, click Manage Owners to select...
Read more >pmndrs/zustand: Bear necessities for state ... - GitHub
A small, fast and scalable bearbones state-management solution using simplified flux principles. Has a comfy api based on hooks, isn't boilerplatey or ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Once I have realized that
populates
parameter could be a function I have created a workaround:This code first extracts the user document ID from the
owner
attribute and then uses this ID to initialize a newownerData
attribute. FinallyownerData
attribute is populated as usual.@jollyBaker Not yet, but definitely high on the priority list.