{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/relay/issues/1420","repository_url":"https://api.github.com/repos/facebook/relay","labels_url":"https://api.github.com/repos/facebook/relay/issues/1420/labels{/name}","comments_url":"https://api.github.com/repos/facebook/relay/issues/1420/comments","events_url":"https://api.github.com/repos/facebook/relay/issues/1420/events","html_url":"https://github.com/facebook/relay/issues/1420","id":184018167,"number":1420,"title":"Login Mutation","user":{"login":"yachaka","id":8074336,"avatar_url":"https://avatars.githubusercontent.com/u/8074336?v=3","gravatar_id":"","url":"https://api.github.com/users/yachaka","html_url":"https://github.com/yachaka","followers_url":"https://api.github.com/users/yachaka/followers","following_url":"https://api.github.com/users/yachaka/following{/other_user}","gists_url":"https://api.github.com/users/yachaka/gists{/gist_id}","starred_url":"https://api.github.com/users/yachaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yachaka/subscriptions","organizations_url":"https://api.github.com/users/yachaka/orgs","repos_url":"https://api.github.com/users/yachaka/repos","events_url":"https://api.github.com/users/yachaka/events{/privacy}","received_events_url":"https://api.github.com/users/yachaka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-19T16:55:43Z","updated_at":"2016-10-19T16:55:43Z","closed_at":null,"body":"Hello everyone,\r\n\r\nI'm having a hard time trying to implement a login mutation.\r\nI don't understand what I should put in the `getConfigs()` method in order for Relay to update my `viewer` prop ?\r\n\r\nMy Root Query has a `viewer` field of type `User` that returns the current logged user.\r\nMy `LoginMutation` returns a `User` type.\r\nHere is my `LoginMutation` :\r\n\r\n```js\r\nimport Relay, {\r\n  Mutation\r\n} from 'react-relay'\r\n\r\nmodule.exports = class LoginMutation extends Mutation {\r\n\r\n  getMutation() {\r\n    return Relay.QL`mutation { login }`\r\n  }\r\n\r\n  getVariables() {\r\n    return {\r\n      email: this.props.email,\r\n      password: this.props.password,\r\n    }\r\n  }\r\n\r\n  getFatQuery() {\r\n    return Relay.QL`\r\n      fragment on LoginPayload {\r\n        viewer\r\n        errors\r\n      }\r\n    `\r\n  }\r\n\r\n  getConfigs() {\r\n    return [] // What should I put here to update the current viewer ?\r\n  }\r\n}\r\n```\r\n\r\nThank you for your help"}}
{"actor":{"display_login":"yachaka"}}