Another issue related to the relationship query. the relationship levels issues. #1086
Unanswered
smartbox-jiandonghan
asked this question in
Q&A
Replies: 1 comment 3 replies
-
What is the actual issue? Wrong result? Do you get an error? Do you have a stacktrace? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have 3 levels of 'one to many' relationships.
level1. Agent,
level2. Customer, one agent can have many customers
level 3.Transction, one customer can have many transactions
for the relationship query, I declared the agent model, customer model and transaction model, then declared the 'hasMany' and 'belongsTo' relationship inside.
then I use the following code to excecute the relationship query.
I found, when I used 2 levels relationship query. for example:
it runs ok.
but when I used 3 levels relationship query. for example:
It doesn't work. no any response returned, but no errors prompted.
I use the QraphiQL to test it.
Did you ever encountered this issue before? what reasons may cause this result?
Thanks a lot for any help.
Beta Was this translation helpful? Give feedback.
All reactions