You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure it's a bug
Working with rails 5.2, and graphql 9.3
Question have_many Answers.
Answers can be ordered, and I am using preload_scope: ->(_, _) { Answer.ordered } into the QuestionType's answers field to have them ordered when resolving a question.
But because I am already "using" (loading) them into my question resolver, when resolving it (the question), the preload_scope is skipped.
Unless I am using question.reload in order to clear my question's answers cache.
Is it the desired behaviour ?
The text was updated successfully, but these errors were encountered:
ngouy
changed the title
preload_scope on relationship already loaded
preload_scope on relationship already loaded is skipped
Mar 19, 2019
Not sure it's a bug
Working with rails 5.2, and graphql 9.3
Question
have_manyAnswers
.Answers can be ordered, and I am using
preload_scope: ->(_, _) { Answer.ordered }
into theQuestionType
'sanswers
field to have them ordered when resolving a question.But because I am already "using" (loading) them into my question resolver, when resolving it (the question), the preload_scope is skipped.
Unless I am using
question.reload
in order to clear my question's answers cache.Is it the desired behaviour ?
The text was updated successfully, but these errors were encountered: