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

Expanding navigation properties #107

Open
gsandorx opened this issue Jan 12, 2021 · 0 comments
Open

Expanding navigation properties #107

gsandorx opened this issue Jan 12, 2021 · 0 comments

Comments

@gsandorx
Copy link

gsandorx commented Jan 12, 2021

Hey, any plans to include support for expanding/including navigation properties? E.g.

public class Post {
    public Datetime Date { get; set; }
    public User Creator { get; set; }
}

public class User {
    public string Name { get; set; }
}

Request:

/GetPosts?expands=Creator

Result:

[{
   {
      datetime: "1998-02-30Z00:00:00",
      creator: 
      {
        name: "John"
      }
   },
   {
      datetime: "2002-05-28Z00:00:00",
      creator: 
      {
        name: "Mary"
      }
   },
}]

This is what EF Core does when you use query.Include()

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