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.

[Feature] Cover all data types that Cloud Firestore supports

See original GitHub issue

I 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:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
TobiasBuchholzcommented, Jun 1, 2022

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.

1reaction
TobiasBuchholzcommented, Apr 7, 2022

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 running dotnet 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.

Read more comments on GitHub >

github_iconTop 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 >

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