Skip to Main Content
Mastering Firebase for Android Development
book

Mastering Firebase for Android Development

by Ashok Kumar S
June 2018
Beginner to intermediate content levelBeginner to intermediate
394 pages
9h 2m
English
Packt Publishing
Content preview from Mastering Firebase for Android Development

Choosing a data structure for your Firestore project

For many use cases, having nested data in documents works well than with other structures. Similarly, before we go forward to implement the data structure plan, there are three main possibilities for the data structure, which are nested data in documents, sub-collections, and root level collections. 

Firestore supports all the primitive data types and also some of the modern data types as well. Firestore supports array, boolean, bytes, date and time, floating point numbers, geographical points, integer, map, NULL, reference, and text string. 

When the query involves fields with mixed types, Firestore uses deterministic ordering. The ordering is enlisted as follows: 

  1. Null values
  2. Boolean ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning React and Firebase: Create Four Beginner-Friendly Projects Using React and Firebase

Beginning React and Firebase: Create Four Beginner-Friendly Projects Using React and Firebase

Nabendu Biswas

Publisher Resources

ISBN: 9781788624718Supplemental Content