Sha256: 3f48ccb35d45a341b653250b10fc18ae39ab65113e1486b0e5af3716d05dfac6

Contents?: true

Size: 219 Bytes

Versions: 6

Compression:

Stored size: 219 Bytes

Contents

# frozen_string_literal: true

module Resolvers
  class BaseSearchResolver < BaseResolver
    include SearchObject.module(:graphql)

    def escape_search_term(term)
      "%#{term.gsub(/\s+/, '%')}%"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
search_object_graphql-1.0.5 example/app/graphql/resolvers/base_search_resolver.rb
search_object_graphql-1.0.4 example/app/graphql/resolvers/base_search_resolver.rb
search_object_graphql-1.0.3 example/app/graphql/resolvers/base_search_resolver.rb
search_object_graphql-1.0.2 example/app/graphql/resolvers/base_search_resolver.rb
search_object_graphql-1.0.1 example/app/graphql/resolvers/base_search_resolver.rb
search_object_graphql-1.0.0 example/app/graphql/resolvers/base_search_resolver.rb