add questionFilterOptions query
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
module Resolvers
|
||||
class QuestionFilterOptionsQueryResolver
|
||||
def initialize; end
|
||||
|
||||
def resolve
|
||||
{
|
||||
years: Question.distinct(:authorship_year).pluck(:authorship_year)
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user