README.md in search_object_graphql-1.0.2 vs README.md in search_object_graphql-1.0.3

- old
+ new

@@ -97,12 +97,12 @@ class PostResolver < GraphQL::Schema::Resolver include SearchObject.module(:graphql) description 'Lists all posts' - option(:name, type: types.String, description: 'Fuzzy name matching') { ... } - option(:published, type: types.Boolean, description: 'Find published/unpublished') { ... } + option(:name, type: String, description: 'Fuzzy name matching') { ... } + option(:published, type: Boolean, description: 'Find published/unpublished') { ... } end ``` ### Default Values @@ -110,11 +110,11 @@ class PostResolver < GraphQL::Schema::Resolver include SearchObject.module(:graphql) scope { Post.all } - option(:published, type: types.Boolean, default: true) { |scope, value| value ? scope.published : scope.unpublished } + option(:published, type: Boolean, default: true) { |scope, value| value ? scope.published : scope.unpublished } end ``` ### Additional Argument Options @@ -124,10 +124,10 @@ class PostResolver < GraphQL::Schema::Resolver include SearchObject.module(:graphql) scope { Post.all } - option(:published, type: types.Boolean, argument_options: { pundit_role: :read }) { |scope, value| value ? scope.published : scope.unpublished } + option(:published, type: Boolean, argument_options: { pundit_role: :read }) { |scope, value| value ? scope.published : scope.unpublished } end ``` ### Accessing Parent Object