Hi,
I am using Couchbase Lite iOS as my local db in my iOS application.
I have complex JSON structure  ahead of me which I need to map into 
different Docs in CouchDb.
 I want to save in such a way that I will not have to write a, lot of BL to 
fetch data and accordingly generate my UI.
A sample  structure is as below

{
  "Subject": {
    "Category": [
      {
        "Category_Name": "Science",
        "Course": [
          {
            "Course_Name": "Computer Science",
            "Course_Subjects": [
              {
                "Subject_Name": "Data Structures And Algorithms"
              },
              {
                "Subject_Name": "Mobile Computing"
              },
              {
                "Subject_Name": "Distributed Systems"
              },
              {
                "Subject_Name": "Data Intensive Computing"
              }
            ]
          }]
      }
    ]
  }
}


I might be getting many sublevels (say books with Chapter names as another 
sublevel) too  under each subject which I will not be completely aware of 
when recieved from backend systems .If I am to  store this as a  single 
Document in Couchbase , I will have to write helluva  lot of BL Code say if 
I have to retrieve say a Chapter info under particular subject.

Kindly suggest me in solving the quandry I am held up with. 

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to