@@ -29,7 +29,11 @@ Generate a model type from a model.
2929$ rails generate gql:model_type MODEL_CLASS
3030```
3131
32- Result:
32+ #### Options
33+
34+ * ` --name ` - customize the file/class name, useful if you don't want the default Type suffix.
35+
36+ #### Example
3337
3438``` ruby
3539# app/graphql/post_type.rb
@@ -52,7 +56,11 @@ Generate an input type from a model.
5256rails generate gql:input Post
5357```
5458
55- Result:
59+ #### Options
60+
61+ * ` --name ` - customize the file/class name, useful if you don't want the default Input suffix.
62+
63+ #### Example
5664
5765``` ruby
5866# app/graphql/types/post_input.rb
@@ -74,7 +82,8 @@ Generate create, update and delete mutations for a model.
7482rails generate gql:mutations Post
7583```
7684
77- Result:
85+ #### Example
86+
7887``` ruby
7988# app/graphql/types/post_input.rb
8089module Types
@@ -99,7 +108,7 @@ The mutation generator generates something akin to an "upsert" mutation. It take
99108rails generate gql:mutation Update Post
100109```
101110
102- Result:
111+ #### Example
103112
104113``` ruby
105114# app/graphql/mutations/update_post.rb
@@ -141,7 +150,7 @@ If you have not yet created a base search resolver:
141150
142151\* _ Adds ` gem 'search_object_graphql' ` to gemfile_
143152
144- result:
153+ #### Example
145154
146155``` ruby
147156# app/graphql/resolvers/base_search_resolver.rb
@@ -158,7 +167,7 @@ Then generate a search object for your model:
158167
159168` rails g gql:model_search Post `
160169
161- result:
170+ #### Example
162171
163172``` ruby
164173# app/graphql/resolvers/post_search.rb
0 commit comments