Skip to content

Commit

Permalink
Improve examples
Browse files Browse the repository at this point in the history
  • Loading branch information
RStankov committed May 13, 2017
1 parent 12f7dac commit 5ad67b5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Just include the ```SearchObject.module``` and define your search options and th
class PostResolver
include SearchObject.module(:graphql)

type PostType
type types[PostType]

scope { Post.all }

Expand Down
2 changes: 1 addition & 1 deletion example/app/graphql/resolvers/category_search.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Resolvers
class CategorySearch < Resolvers::BaseSearchResolver
type Types::CategoryType
type types[Types::CategoryType]
description 'Lists categories'

OrderEnum = GraphQL::EnumType.define do
Expand Down
2 changes: 1 addition & 1 deletion example/app/graphql/resolvers/post_search.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Resolvers
class PostSearch < Resolvers::BaseSearchResolver
type Types::PostType
type types[Types::PostType]
description 'Lists posts'

OrderEnum = GraphQL::EnumType.define do
Expand Down

0 comments on commit 5ad67b5

Please sign in to comment.