Title: Returned null on DataFetchingEnvironment .getUser() in Mutation class · Issue #4 · howtographql/graphql-java · GitHub
Open Graph Title: Returned null on DataFetchingEnvironment .getUser() in Mutation class · Issue #4 · howtographql/graphql-java
X Title: Returned null on DataFetchingEnvironment .getUser() in Mutation class · Issue #4 · howtographql/graphql-java
Description: AuthContext context = env.getContext(); Link newLink = new Link(url, description, context.getUser().getId()); I do not get null on context varible, but I get a null on context.getUser() code:https://github.com/howtographql/graphql-java/b...
Open Graph Description: AuthContext context = env.getContext(); Link newLink = new Link(url, description, context.getUser().getId()); I do not get null on context varible, but I get a null on context.getUser() code:https:...
X Description: AuthContext context = env.getContext(); Link newLink = new Link(url, description, context.getUser().getId()); I do not get null on context varible, but I get a null on context.getUser() code:https:...
Opengraph URL: https://github.com/howtographql/graphql-java/issues/4
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Returned null on DataFetchingEnvironment .getUser() in Mutation class","articleBody":"`\r\n AuthContext context = env.getContext();\r\nLink newLink = new Link(url, description, context.getUser().getId());`\r\nI do not get null on context varible, but I get a null on context.getUser()\r\n\r\ncode:https://github.com/howtographql/graphql-java/blob/master/src/main/java/com/howtographql/hackernews/Mutation.java\r\nor my code:\r\nhttps://github.com/JonathanSum/myOwnJavaGraphqlStarterKit/blob/master/src/main/java/com/howtographql/hackernews/Mutation.java\r\n\r\n","author":{"url":"https://github.com/AliceSum","@type":"Person","name":"AliceSum"},"datePublished":"2018-03-04T11:56:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/4/graphql-java/issues/4"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:79cb7848-856e-f9f8-866c-038b9e807429 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B7DC:277ED1:50C7440:69B763B:6A5D7B8A |
| html-safe-nonce | 023b27b4a85135b2a13ad8246ab77c1ac52ee6a28fbf1f0579df35951d16908e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0RDOjI3N0VEMTo1MEM3NDQwOjY5Qjc2M0I6NkE1RDdCOEEiLCJ2aXNpdG9yX2lkIjoiODQyODAzNDA5OTYzNTQ3NTMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 275db0584ec31192bef18a88f6c538d67928bbf1c150ca4150366eb396d63609 |
| hovercard-subject-tag | issue:302079698 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/howtographql/graphql-java/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c0bcd55c93590abdc8637e5c4d336f86e5dc9755eae33a9f00202140b0d006cb/howtographql/graphql-java/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c0bcd55c93590abdc8637e5c4d336f86e5dc9755eae33a9f00202140b0d006cb/howtographql/graphql-java/issues/4 |
| og:image:alt | AuthContext context = env.getContext(); Link newLink = new Link(url, description, context.getUser().getId()); I do not get null on context varible, but I get a null on context.getUser() code:https:... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AliceSum |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/howtographql/graphql-java git https://github.com/howtographql/graphql-java.git |
| octolytics-dimension-user_id | 29239447 |
| octolytics-dimension-user_login | howtographql |
| octolytics-dimension-repository_id | 95577529 |
| octolytics-dimension-repository_nwo | howtographql/graphql-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 95577529 |
| octolytics-dimension-repository_network_root_nwo | howtographql/graphql-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width