README.md in graphql_rails-0.2.4 vs README.md in graphql_rails-0.3.0
- old
+ new
@@ -45,11 +45,11 @@
graphql do |c|
# most common attributes, like :id, :name, :title has default type, so you don't have to specify it (but you can!)
c.attribute :id
- c.attribute :email, :string
- c.attribute :surname, :string
+ c.attribute :email, type: :string
+ c.attribute :surname, type: :string
end
end
```
### Define controller