{"action":"created","issue":{"url":"https://api.github.com/repos/graphql-dotnet/graphql-client/issues/36","repository_url":"https://api.github.com/repos/graphql-dotnet/graphql-client","labels_url":"https://api.github.com/repos/graphql-dotnet/graphql-client/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/graphql-dotnet/graphql-client/issues/36/comments","events_url":"https://api.github.com/repos/graphql-dotnet/graphql-client/issues/36/events","html_url":"https://github.com/graphql-dotnet/graphql-client/issues/36","id":311404747,"number":36,"title":"Basic query question/advice","user":{"login":"aromanarguello","id":28843542,"avatar_url":"https://avatars0.githubusercontent.com/u/28843542?v=4","gravatar_id":"","url":"https://api.github.com/users/aromanarguello","html_url":"https://github.com/aromanarguello","followers_url":"https://api.github.com/users/aromanarguello/followers","following_url":"https://api.github.com/users/aromanarguello/following{/other_user}","gists_url":"https://api.github.com/users/aromanarguello/gists{/gist_id}","starred_url":"https://api.github.com/users/aromanarguello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aromanarguello/subscriptions","organizations_url":"https://api.github.com/users/aromanarguello/orgs","repos_url":"https://api.github.com/users/aromanarguello/repos","events_url":"https://api.github.com/users/aromanarguello/events{/privacy}","received_events_url":"https://api.github.com/users/aromanarguello/received_events","type":"User","site_admin":false},"labels":[{"id":770256690,"url":"https://api.github.com/repos/graphql-dotnet/graphql-client/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":{"login":"deinok","id":6586053,"avatar_url":"https://avatars0.githubusercontent.com/u/6586053?v=4","gravatar_id":"","url":"https://api.github.com/users/deinok","html_url":"https://github.com/deinok","followers_url":"https://api.github.com/users/deinok/followers","following_url":"https://api.github.com/users/deinok/following{/other_user}","gists_url":"https://api.github.com/users/deinok/gists{/gist_id}","starred_url":"https://api.github.com/users/deinok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deinok/subscriptions","organizations_url":"https://api.github.com/users/deinok/orgs","repos_url":"https://api.github.com/users/deinok/repos","events_url":"https://api.github.com/users/deinok/events{/privacy}","received_events_url":"https://api.github.com/users/deinok/received_events","type":"User","site_admin":false},"assignees":[{"login":"deinok","id":6586053,"avatar_url":"https://avatars0.githubusercontent.com/u/6586053?v=4","gravatar_id":"","url":"https://api.github.com/users/deinok","html_url":"https://github.com/deinok","followers_url":"https://api.github.com/users/deinok/followers","following_url":"https://api.github.com/users/deinok/following{/other_user}","gists_url":"https://api.github.com/users/deinok/gists{/gist_id}","starred_url":"https://api.github.com/users/deinok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deinok/subscriptions","organizations_url":"https://api.github.com/users/deinok/orgs","repos_url":"https://api.github.com/users/deinok/repos","events_url":"https://api.github.com/users/deinok/events{/privacy}","received_events_url":"https://api.github.com/users/deinok/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-04-04T21:55:12Z","updated_at":"2018-04-05T20:07:04Z","closed_at":"2018-04-05T20:07:04Z","author_association":"NONE","body":"Hi, \r\n\r\nThank you for creating such a good client for GraphQL calls. Currently, I am attempting to implement the client at my job since we are migrating our Automation calls from REST calls to GraphQL calls to hit the new GraphQL server. I have been trying to use the client to first obtain an Auth Token, which I need in order to proceed to another call. \r\nAt the moment this is how I am proceeding with the call. I am not well versed in Async performance specially since C# is an Synchronous language. \r\n\r\nI don't seem to be returning anything. I was hoping you could guide me as to what I am doing wrong or how to better use the client to hit our server.\r\n\r\n\r\n```\r\nusing System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Text;\r\nusing System.Threading.Tasks;\r\nusing GraphQL.Client;\r\nusing GraphQL.Common.Request;\r\nusing GraphQL.Common.Response;\r\n\r\n```\r\n\r\nMethod:\r\n```\r\n    public static async Task<GraphQLResponse> GetNewToken(string email, string password)\r\n        {\r\n            var tokenRequest = new GraphQLRequest\r\n            {\r\n                Query = @\"\r\n                  {\r\n                    getUserToken(username: $email , password: $password )\r\n                  }\"\r\n            };\r\n            var endPoint = new GraphQLClient(ApiEndpointURI);\r\n            var authToken = await endPoint.GetAsync(tokenRequest);\r\n            Console.WriteLine(authToken.Data);\r\n            return authToken.Data;\r\n        }\r\n```\r\n\r\nI am making the call on a sandbox environment. When I Console.WriteLine VS outputs: \r\n```\r\nSystem.Threading.Tasks.Task`1[GraphQL.Common.Response.GraphQLResponse]\r\n```\r\nWhen I go into debugger mode and I step into the function. I step over to `authToken.Data` and get the following error: \r\n`error CS0234: The Type or namespace name 'Common' does not exist in the namespace...`\r\nI feel that much of this issue also falls on me not understanding how the username and password are interpolated correctly.\r\n\r\nI really appreciate your assitance with the issue. Best!"},"comment":{"url":"https://api.github.com/repos/graphql-dotnet/graphql-client/issues/comments/379060458","html_url":"https://github.com/graphql-dotnet/graphql-client/issues/36#issuecomment-379060458","issue_url":"https://api.github.com/repos/graphql-dotnet/graphql-client/issues/36","id":379060458,"user":{"login":"aromanarguello","id":28843542,"avatar_url":"https://avatars0.githubusercontent.com/u/28843542?v=4","gravatar_id":"","url":"https://api.github.com/users/aromanarguello","html_url":"https://github.com/aromanarguello","followers_url":"https://api.github.com/users/aromanarguello/followers","following_url":"https://api.github.com/users/aromanarguello/following{/other_user}","gists_url":"https://api.github.com/users/aromanarguello/gists{/gist_id}","starred_url":"https://api.github.com/users/aromanarguello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aromanarguello/subscriptions","organizations_url":"https://api.github.com/users/aromanarguello/orgs","repos_url":"https://api.github.com/users/aromanarguello/repos","events_url":"https://api.github.com/users/aromanarguello/events{/privacy}","received_events_url":"https://api.github.com/users/aromanarguello/received_events","type":"User","site_admin":false},"created_at":"2018-04-05T20:07:04Z","updated_at":"2018-04-05T20:07:04Z","author_association":"NONE","body":"I hard-coded the email and password for right now in the correct way as you suggested. It got it working. I am getting the token. \r\n\r\nGracias por tu ayuda!"}}
{"actor":{"display_login":"aromanarguello"}}