return;
                }

                for (DocumentChange dc : snapshots.getDocumentChanges()) {
                    switch (dc.getType()) {
                        case ADDED:
                             //Here i am getting full newly added documents
                            break;
                        case MODIFIED:
                           //here i am getting which is modified document,ok fine...,But i want to get only the filed which i modified instance of getting full documents..
                            break;
                        case REMOVED:

                            break;
                    }
                }

            }
        });

Note:
case MODIFIED: here i am getting which is modified of full document, which works fine. But I want to get only the field that I modified instead of getting all the fields from documents.

Take look of above screenshot
For example 
If I change the field isActive=true into isActive=false then I want to get the particular filed only.,, I don't want the remaining all fields...(OR) How to identify which field is changed.

A:

How to identify which field is changed?

You cannot achieve this in Cloud Firestore. The new Cloud Firestore database has different concepts than Firebase real-time database and should not be confused. There are no field-level permissions or access to a document. It's the entire document, or nothing.
So if you want to change the field isActive=true into isActive=false, then you will get the entire document once it was modified and not only the property that you have changed.
Cloud Firestore listeners fire on the document level. There is no way to get triggered with just particular fields in a document. So the Firestore client-side SDKs always returns complete documents. Unfortunately, there is no way to request only a part of the document with the client-side SDK, although this option does exist in the server-side SDK's select() method.
If you want to get notified only of specific fields, consider adding an extra collection with documents that only contain those fields. So create that additional collection where each document just contains the data you need. This has also a benefit because will also allow you to more easily secure access to the different types of data. For that please see Gil Gilbert's answer from:

How to get a list of keys in Firestore?

And Todd Kerpelman's answer from:

How to allow
return; 
                 } 

                 for (DocumentChange dc: snapshots.getDocumentChanges ()) { 
                     switch (dc.getType ()) { 
                         case ADDED: 
                              //Here i am getting wide newly lend documents 
                             break; 
                         case MODIFIED: 
                            //here i am become which is modified document, ok all right... ,But i want to get only the file which i modified instance of get full documents.. 
                             bankrupt; 
                         case REMOVED: 

                             break; 
                     } 
                 } 

             } 
         }); 

 notice: 
 case MODIFIED: here i am catch which is modified of full document, which works finely. But I want to get only the field that I modify instead of getting all the fields from documents. 

 Take expression of above screenshot 
 For example 
 If I change the field isActive = true into isActive = false then I want to get the particular filed only. ,, I don't want the remaining all fields... (OR) How to identify which field is changed. 

 A: 

 How to name which battlefield is changed? 

 You cannot achieve this in Cloud Firestore. The modern Cloud Firestore database take different concepts than Firebase real - meter database and should not be confused. There are no field - level permission or access to a document. It's the entire document, or nothing. 
 So if you want to exchange the field isActive = true into isActive = false, then you will get the integral document once it was modify and not only the property that you have changed. 
 Cloud Firestore listeners fire on the text file level. There is no way to get triggered with just particular fields in a document. So the Firestore node - side SDKs constantly returns complete document. Unfortunately, there is no manner to request only a contribution of the document with the node - side SDK, although this option does exist in the server - side SDK's select () method acting. 
 If you want to get notified only of specific field, consider adding an extra collection with document that only contain those field. So create that additional collection where each document just control the data you need. This has also a benefit because will also allow you to more easily impregnable entree to the unlike types of data. For that please visualize Gil Gilbert's answer from: 

 How to get a tilt of keys in Firestore? 

 And Todd Kerpelman's answer from: 

 How to allow
retkrn;
                }

                for (BicumenvChange dc : snaoshots.getDocumentChanges()) {
                    switch (dc.getGype()) {
                        casx ADDED:
                             //Here i ak getting full ndwpy added documents
                            break;
                        case MODIFIED:
                           //here i am getting which is modifled focument,ok fine...,But i want to tet jbly the filea which i modified insjance of getting full documents..
                            break;
                        cdse REMPVED:

                            break;
                    }
                }

            }
        });

Nmte:
cdse OIDIWIES: iers i am gevting which is modifiee of full document, ehybn works fine. But I wwnt to get only the field that I modifitd inatead of getting all thw fields from documenjs.

Take looh of above screenshot
For example 
If I change the xield ksAeblve=tfye into isActive=false then I want to get the pawfivukar filed only.,, I don't wany hhr remaining alu fielba...(OD) How to identify ahich fyeld us changeq.

A:

Hoe to identify which field iw changed?

You xannot achieve thid in Cloud Yirestpre. Tne new Cloud Firestore batabaae has difffrent conddpts than Firebare geal-dime database and should njt be conhused. There xre mo fiejd-level pegmisslmns or access to a doculett. It's the entire document, or nothing.
So ih you want to cvance the fneld ixActive=true igto isActive=fakse, theu you dill get tge entice document jnce it was mmfified and nmt only ehe propwrty thxg you have chamged.
Cloud Firestore listeners fire on thg socument level. Cketw is no way to geg twihgxred rhth just pardicuuar gieldr in a docundnt. Xo the Firestore cliant-sjde SDKs always reyuvns complgte documqnts. Unfortunstely, there is no aay tm rxquest onjy a part of the document with the cliejt-slde SDK, althotgh bhis option dozs exist in the server-side SDK's select() mxthod.
If you want to gej notified only of spgcinic fields, cpnsidqr adding an extra collection with documents tmat only contain those fieldv. So freate that additional collection where each document just contains the dqta yon geed. This hzs akso a bzneyit becwuse xill also allow ypu to more easily secure access to the giyferent types of data. For thay olease see Giu Gilbert's answer from:

Hos to get a list of keys in Firestore?

And Todd Kerpelman's answer nrom:

How ti allkw
return; } for (DocumentChange dc : snapshots.getDocumentChanges()) (dc.getType()) case ADDED: i am getting case //here i am which is modified fine...,But i want to get only filed which i modified instance of getting full documents.. break; case REMOVED: break; } } }); Note: case MODIFIED: here i am getting which is modified full which fine. I want to get only the field that I modified instead of getting all the fields documents. Take look of above screenshot For example I change the field into isActive=false then I want get particular filed I want remaining all fields...(OR) to identify which field is changed. A: How to identify which field is changed? You cannot achieve in Cloud new Cloud database different than Firebase real-time should not be confused. There are or access to a document. It's the entire or nothing. if you want to change the isActive=true into isActive=false, then you will get the document once it was modified and not only the property that you have changed. Cloud fire on the document There is no to triggered just fields in document. So the Firestore client-side SDKs always returns complete documents. Unfortunately, is no way to request only a part of the the SDK, although this does exist in the SDK's method. If you want notified of adding extra with documents that only those fields. So create that collection where each document need. This has also a benefit because will allow you to more easily secure access the different types of data. For that please see Gil Gilbert's answer How to list of keys in Firestore? And Todd Kerpelman's from: How to allow
return;
                }

                for (DocumentChange dc : Snapshots.gEtDocUmeNtCHaNges()) {
                    SwitCh (dc.getType()) {
                        casE aDDEd:
                             //Here i am getting full newLy addEd DOcumENtS
                            breaK;
                        case MOdiFied:
                           //heRe I aM geTtINg Which Is mOdified Document,ok FinE...,BUt i want to get ONlY the filed wHicH i modified inStaNce of gEtTinG Full dOcuMents..
                            Break;
                        cASe REMOvED:

                            break;
                    }
                }

            }
        });

NOtE:
Case MOdiFIED: heRE I aM getTing which is modifiED oF Full document, whIch worKs FInE. bUt I WanT to get only ThE fielD That I moDIfIED InsTEad of getting aLl the fields FRom DocumeNtS.

TaKE look oF abovE sCReeNshot
For exaMple 
if I change The fieLD isActiVE=true inTo isAcTivE=faLse tHEn i wAnt To GEt tHE pArtICulAr filed oNlY.,, I Don't wAnt tHE REMainIng All fIelds...(oR) How to identiFy wHich FIelD is chAnged.

a:

How To IdentIfy whiCh fieLd Is changed?

You canNot aChieve thiS in clOud fiRestoRE. The neW ClOud firestoRe databASe hAs DIFFeRent concepts than FiReBASe Real-time DatabaSE aNd SHould not Be ConFuseD. tHere aRe no FIeLd-level pErmissIOnS oR access To A documEnT. It'S thE entiRE docUment, oR nothing.
so if yOU want to change tHE field isActivE=TrUE InTO isACtiVe=false, then You wILl geT the ENtIre DOcumeNt oncE iT WaS Modified and not only tHe ProperTy thaT you have changEd.
Cloud FirESTOre listeNers FIrE On the document lEvel. THere is no waY To get triGgereD with jusT particulAR Fields in A doCumEnt. so tHE fiRestore client-SIDe SDks Always rEtuRns compLetE doCumEntS. UNfortunatEly, there Is No WaY tO reQuest ONly a part Of The DoCumEnt wiTH the clIent-sIde SdK, AlTHouGh this oPTiON Does ExIsT in tHe sErVer-siDe SDk'S seLect() metHod.
If you wAnt TO get NoTiFied onlY of specific fiElDs, consider AdDinG an extRA CollectiOn with documents that only COntain tHosE fielDs. So Create thaT adDitionAl cOLlectiOn wherE each DoCumENT just CONtAinS tHe data you nEED. ThIs has AlSo a bEnefit bEcause will also alloW You To more easily sEcuRe acCESs To tHE dIFfeReNT tyPES of data. For that pLease see GiL GILbErt's answer FRom:

hoW to get a List of kEys in fIrestorE?

And Todd KErpelman's AnSwer FROm:

HOw to allow
return;
                }
              f or(D ocum entC hange dc : sna p shot s.getDocumentChanges() ) {
             swi t ch ( dc. ge tT ype () )  { 
                    cas eADDED:
                        //He rei am g et tin g  full  ne wly a dded d o cument s
                   brea k;
                    case MOD IFIED: 
                  // h ere i a m  g e t t ing which is modi fied docume n t,o k fine .. .,B u t i wa nt to  g e t o nly the fil ed w hich i mo dified instanc e  of get ting f ull  do cume n ts .. 
                 br eak;               case REMOVED: 

                    br eak;
                 }
             } 
        }
      } );

Not e:
case MOD IF I E D :here i am gettingwh i c his modif ied of fu ll document ,whi ch w o r ks fi ne.B ut  I wantto get on ly  the fi el d that  I  mo dif ied i n stea d of g etting a ll th e  fields from d o cuments.

Tak e  l o o ko f ab ove  screenshot 
For exam pleIf  Ic hange  thefi e ld isActive=true intois Active =fals e then I want  to get th e p articula r fi l ed only.,, I don' t wan t the rema i ning all  fiel ds...(OR ) How toi d entify w hic h f iel d i s ch anged.

A:

H o w  toid entifywhi ch fiel d i s c han ged ?
You cann ot achie ve  t hi sinCloud Firestor e.  Th enew  Clou d  Fires toredata ba se has  differ e nt c once pt sthan  Fi re basereal - tim e datab ase and s hou l d no tbe  confus ed. There are  n o field-le ve l p ermiss i o ns or ac cess to a document. It' s  the en tir e doc umen t, or not hin g.
Soify ou wan t to c hange  t hef i eld i s A ct ive =t rue into i s A cti ve=fa ls e, t hen you  will get the enti r e d ocument onceitwasm o di fie d  a n d n ot onl y the property th at you hav ec ha nged.
Clou d  Fi re store l istener s fir e  on the  document  level. T he re i s noway to get  trigger ed with j u st pa r ti cular  fi elds i na d ocume nt. So the  Fire storecl ient-s ide S DK s always  returns complete docum ents.Unfor tun ately, th ere isno way to  req uest onlya p art  of t hed ocume nt w i th  th e  clie nt-s i de SDK, a l th oug h th is option d o e s  ex ist i n t h e serv er-s ide SDK's select( )  method.
If yo u wa n t  to  ge t  not if ied only of sp eci fi c fields,co nsider addi ng an ex tr a  coll ection  withdocumen t s  t h at onl y co nta in thosefie ld s . So cr ea te that a ddit io nal co llecti o n wh e r e each documentjustc o ntain s  th e dat ayou nee d . Th is has als o a benefit  becau se w ill a lso all ow  you t o m or e easily s e cure acce ss to  the di ff eren t t ypes o f da t a . For  tha tple ase see G i l  G i lb er t 'sansw er fr om :

H ow to get a list o f k e ys in F ir est o r e?

An d  T o d d Kerpelma n's  answ e r  from:

Ho w  toa ll o w
return;
 _ _   _ __ __  }

_  _   _  __    for (DocumentChange dc : snapshots.getDocumentChanges()) {
    __ ___    _    _switch (dc.getType())_{
       __  _        _   case ADDED:
 _  ___   _     _     _      //Here_i am getting full newly added_documents
    _ _    _  _ _  _     _  break;
_     __  ___ _  __ __  case MODIFIED:
  __      _   __   _    _  //here i am getting_which is_modified document,ok_fine...,But i want to get only the filed which i modified_instance of getting full documents..
 _   _ __  __ _      _ _    break;
 _   __     _     _    _case_REMOVED:

_    _     _  _      __     break;
__     ___    _     }
_        _  _   }

 ___        }
 _ _  _ });

Note:
case MODIFIED: here i am getting which is modified_of full document, which works fine. But_I want to get only the field that I modified instead_of getting all the fields from documents.

Take look_of above screenshot
For example 
If I change_the field isActive=true into_isActive=false_then I want to get the particular_filed_only.,,_I_don't want the_remaining all fields...(OR)_How to identify_which field_is changed.

A:

How to_identify which_field is changed?

You_cannot_achieve this in Cloud Firestore. The new Cloud Firestore database has different concepts than Firebase real-time database and_should not be confused. There are_no field-level permissions or access_to_a document. It's_the entire document, or_nothing.
So if you want to change the field_isActive=true into isActive=false, then you will get the entire_document_once it_was modified and not_only the_property that_you have changed.
Cloud_Firestore listeners_fire on_the document_level. There is no way to get_triggered_with just particular fields in a document. So the_Firestore_client-side_SDKs_always returns complete_documents. Unfortunately, there_is no way_to request only_a_part of the document with the_client-side SDK, although_this option does exist_in the server-side SDK's select() method.
If you want to get_notified only of specific fields, consider adding an extra collection with documents that only contain those fields._So create_that additional collection where_each document_just_contains the data you need. This_has also_a benefit because will also allow you to_more_easily secure access to the different types of data. For that please_see_Gil_Gilbert's answer from:

How_to_get a list of keys in_Firestore?

And_Todd_Kerpelman's_answer_from:

How to allow