Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1401

Add ability to write navigation properties when contentonly set to true

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • V2 2.0.11
    • None
    • odata2-core
    • None

    Description

      Client use case:

      EntityProvider.writeEntry(resultContentType,entitySet, postData, properties)

       

      Currently, to POST a new entry where the ID is server generated we can set the contentOnly flag to true.

      But if contentOnly flag is true, navigationProperties are skipped and only additionallinks are written.

      This is preventing us from performing deep inserts where the related entity also have IDs that are server generated.

      Can we create an option where navigation properties can still be written if contentOnly is set to true?

      An example of the JSON that we are trying to create:

      {
        "Name": "Base Level",
        "Child": {
          "results": [
              "Name": "Level 1",
              "Grandchild": {
                "results": [
                    "Name": "Level 2"
                  }
                ]
              }
            }
          ]
        }
      }
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            josephli2733 Joseph Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: