Skip to content

Commit 6294a34

Browse files
committed
rails g graphql:object User id:Int login:String avatar_url:String type:String created_at:String updated_at:String stargazers_count:Int location:String
1 parent 9cc777e commit 6294a34

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

app/graphql/types/user_type.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Types::UserType = GraphQL::ObjectType.define do
2+
name "User"
3+
field :id, types.Int
4+
field :login, types.String
5+
field :avatar_url, types.String
6+
field :type, types.String
7+
field :created_at, types.String
8+
field :updated_at, types.String
9+
field :stargazers_count, types.Int
10+
field :location, types.String
11+
end

0 commit comments

Comments
 (0)