[Feature] Cover all data types that Cloud Firestore supports
See original GitHub issueI can see that some of the data types that Cloud Firestore supports cannot be stored in the database.
For example, it is not possible to store a document which contains a reference to another document :
public class SimpleItem
{
[FirestoreDocumentId]
public string Id { get; set; }
[FirestoreProperty(nameof(Title))]
public string Title { get; set; }
[FirestoreProperty(nameof(DocReferencePath))]
public string DocReferencePath { get; set; }
[FirestoreProperty(nameof(DocReference))]
// This is not going to be stored in the database
public IDocumentReference DocReference { get; set; }
}
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Supported data types | Firestore - Firebase
Data types. The following table lists the data types supported by Cloud Firestore. It also describes the sort order used when comparing values...
Read more >Supported data types | Firestore
Data types. The following table lists the data types supported by Firestore. It also describes the sort order used when comparing values of...
Read more >Cloud Firestore
A document can contain different types of data, including scalar values (strings, booleans, numbers), arrays (lists) and objects (maps) along with specific ...
Read more >Firebase: Cloud Firestore Data Types, Costs, & Query ...
Cloud Firestore focuses more about the number of operations performed, ... Firebase: Cloud Firestore Data Types, Costs, & Query Examples ...
Read more >What is Google Firestore?
Documents support a wide variety of data types, such as nested objects, numbers, and strings. Firestore enjoys integration with Google Cloud Platform and ......
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
I will close this issue since it was partially implemented by #35, thanks a lot @Kapusch! 😃
For other data types I would suggest to open a new issue with a specific type that should be implemented next.
Hi @Kapusch, thank you very much for your feedback and interest in the library!
Unfortunately it’s quite hard for me to see the relevent changes in your implementation because of all the code formatting differences.
On the
development
branch I’ve added an.editorconfig
file that handles the code formatting and can be used to apply formatting rules by runningdotnet format src/Plugin.Firebase.sln
in the console.Please checkout that branch, apply your changes and code formatting and create a Pull Request, so I can merge it into the project if everything works well. For more information on how to contribute, take a look at the README.