Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-1207

Adding Arrays Object into Realm DB causing an issue ''Error: Error: Array must contain values for all object properties"

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      sing RealmDB following code is listed below

      const object = [{id="1"}, {id="2"}, {id="3"}, {id="4"}];
      const data = await RealmDB.add(Student_SCHEMAS.student_DATA, object);
      Student Schema as shown below:
      
      StudentData = {
          name = "student",
          primaryKey = "id",
          properties: {
               id:'int'
           },
      };
      

      Error: Array must contain values for all object properties and data are not inserted.

      Object size is currently 15MB, so what is the way to add data in Realm with this type of objects.

      Anything I need to change in schema.

      Please suggest, thank you

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: