Skip to content

Commit ae11df6

Browse files
author
Donatas Stundys
committed
Rename currentUser to me
1 parent da74676 commit ae11df6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/graphql/schema.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ type Query {
211211
last: Int
212212
tag: String
213213
): ArticleConnection!
214-
currentUser: User
215214
feed(
216215
# Returns the elements in the list that come after the specified cursor.
217216
after: String
@@ -225,6 +224,7 @@ type Query {
225224
# Returns the last _n_ elements from the list.
226225
last: Int
227226
): ArticleConnection!
227+
me: User
228228
profile(username: String!): Profile
229229
tags: [String!]!
230230
}

app/graphql/types/query_type.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class Types::QueryType < GraphQL::Schema::Object
2-
field :currentUser, Types::UserType, null: true, method: :current_user
3-
def current_user
2+
field :me, Types::UserType, null: true
3+
def me
44
context[:current_user]
55
end
66

0 commit comments

Comments
 (0)