Created
October 11, 2016 23:52
-
-
Save RyanCCollins/37a60eb356f366cc698ee1e42b1a21fb to your computer and use it in GitHub Desktop.
GraphQL, Rails, React: https://medium.com/@ryancollinsio/building-a-full-on-graphql-app-b261f6cfea93#.qtjma57sx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
field :authUser, AuthUserType do | |
argument :auth_token, !types.String | |
resolve -> (obj, args, ctx) do | |
User.find_by(auth_token: args[:auth_token]) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment