-
-
Notifications
You must be signed in to change notification settings - Fork 468
eloquent setrelation #2631
Answered
by
stayallive
slushpuppy
asked this question in
Q&A
eloquent setrelation
#2631
hi, my root resolver returns an eloquent model array with hasOne relationship hydrated using the setRelation method, however when debugging the request, it appears graphql still issues a subquery call on that relationship, How do I prevent this 2nd subquery call from happening?
All reactions
Answered by
stayallive
Nov 16, 2024
I believe you should be able to remove the @relation directive to prevent that.
Replies: 1 comment
I believe you should be able to remove the @relation directive to prevent that.
All reactions
-
❤️ 1
0 replies
Answer selected by
slushpuppy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment