I\'ve got several properties that should not be transferred to Firestore, such as metadata (\"id\" or \"parent\"), and with Firebase Realtime database, there was the option
To mark a field as excluded from the Firestore or Realtime database you can use the @Exclude annotation. For example:
@IgnoreExtraProperties
public class Model {
@Exclude private String id;
// ...
}
You can also use the @IgnoreExtraProperties annotation against the class to automatically ignore properties that don't map to class fields.