diff --git a/app/models/GQLSchema.scala b/app/models/GQLSchema.scala index c90a8ba1..bbeba4dd 100644 --- a/app/models/GQLSchema.scala +++ b/app/models/GQLSchema.scala @@ -93,10 +93,11 @@ object GQLSchema { "facets", searchFacetsResultsGQLImp, description = Some("Search facets"), - arguments = queryString :: entityNames :: pageArg :: Nil, + arguments = optQueryString :: entityNames :: pageArg :: Nil, resolve = ctx => { + val queryString = ctx.arg(optQueryString).getOrElse("") val entities = ctx.arg(entityNames).getOrElse(Seq.empty) - ctx.ctx.searchFacets(ctx.arg(queryString), ctx.arg(pageArg), entities) + ctx.ctx.searchFacets(queryString, ctx.arg(pageArg), entities) } ), Field(