Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sub Level Complex Type values are stored, but unable to retrieve #53

Open
krakzk opened this issue Mar 15, 2023 · 0 comments
Open

Sub Level Complex Type values are stored, but unable to retrieve #53

krakzk opened this issue Mar 15, 2023 · 0 comments

Comments

@krakzk
Copy link

krakzk commented Mar 15, 2023

Have used the library to create odata service. Create an Entity 'UserType' with a Complex Type 'Address' which has a sub complex type 'Location'.
The data gets saved in the db.
But when i run the command to fetch, the Location always comesempty.

{
            "_id": "640f052702b849252f020415",
            "test": "joe",
            "num": "55",
            "addresses": {
                "street": "101-Main",
                "location": [
                    {}
                ]
            }
        }

The data in DB :

{
  "_id": "640f052702b849252f020415",
  "test": "joe",
  "num": "55",
  "addresses": {
    "street": "101-Main",
    "location": [
      {
        "country": "UK",
        "continent": "Europe"
      }
    ]
  }
}

Query i used:
{my url}/UserType?$expand=AddressType/Location

@krakzk krakzk changed the title Sub Level Complex Type values are stored, but unable to retieve Sub Level Complex Type values are stored, but unable to retrieve Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant