Skip to content

Flattening nested data #280

@ghost

Description

http://stackoverflow.com/questions/39258219/firebaserecycleradapter-with-2-childs?noredirect=1#comment65887443_39258219

If I have this Data Structure:

Database:
   X:{
     UserID:{
        UNIQUE_ID_GENERATED_BY_PUSH_METHOD:{
          x:"hello",
          y:"hey there!"
       }
        UNIQUE_ID_2_GENERATED_BY_PUSH_METHOD:{
          x:"what's up?",
          y:"Nothing Much"
       }
   }  
    UserID2:{
        UNIQUE_ID_GENERATED_BY_PUSH_METHOD:{
          x:"bye",
          y:"Have a nice day!"
       }
        UNIQUE_ID_2_GENERATED_BY_PUSH_METHOD:{
          x:"what's up?",
          y:"Nothing Much"
       }
   }  
}

And I'm trying to retrieve x and y into a FireBaseRecyclerAdapter, and it's not possible without making my own huge code. I'd love a feature like this; it'll make things much easier and will trim up my database.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions