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

how to join table? #23

Closed
Diluka opened this issue Jan 17, 2019 · 0 comments · Fixed by #28
Closed

how to join table? #23

Diluka opened this issue Jan 17, 2019 · 0 comments · Fixed by #28

Comments

@Diluka
Copy link
Contributor

Diluka commented Jan 17, 2019

Here we have class A, B and C

class A{
  a:string;
  b:B;
}
class B{
  b:string;
  c:C;
}
class C{
  c:string
}

I want to query A, but join B and C. I want a result like...

[
    {
        "a": "a1",
        "b": {
            "b": "b1",
            "c": {
                "c": "c1"
            }
        }
    },
    {
        "a": "a2",
        "b": {
            "b": "b2",
            "c": {
                "c": "c2"
            }
        }
    }
]

but I can only join table with 1 level, missing all the c in b

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

Successfully merging a pull request may close this issue.

1 participant