{"action":"closed","issue":{"url":"https://api.github.com/repos/graphql-dotnet/graphql-dotnet/issues/46","labels_url":"https://api.github.com/repos/graphql-dotnet/graphql-dotnet/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/graphql-dotnet/graphql-dotnet/issues/46/comments","events_url":"https://api.github.com/repos/graphql-dotnet/graphql-dotnet/issues/46/events","html_url":"https://github.com/graphql-dotnet/graphql-dotnet/issues/46","id":127668809,"number":46,"title":"Passing variables to executor.","user":{"login":"LogikBlitz","id":560415,"avatar_url":"https://avatars.githubusercontent.com/u/560415?v=3","gravatar_id":"","url":"https://api.github.com/users/LogikBlitz","html_url":"https://github.com/LogikBlitz","followers_url":"https://api.github.com/users/LogikBlitz/followers","following_url":"https://api.github.com/users/LogikBlitz/following{/other_user}","gists_url":"https://api.github.com/users/LogikBlitz/gists{/gist_id}","starred_url":"https://api.github.com/users/LogikBlitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LogikBlitz/subscriptions","organizations_url":"https://api.github.com/users/LogikBlitz/orgs","repos_url":"https://api.github.com/users/LogikBlitz/repos","events_url":"https://api.github.com/users/LogikBlitz/events{/privacy}","received_events_url":"https://api.github.com/users/LogikBlitz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-20T12:08:10Z","updated_at":"2016-01-21T05:04:43Z","closed_at":"2016-01-21T05:04:43Z","body":"So this is a question as to how you pass variables.\r\n\r\nFollowing the demo in the repo i have the following query object:\r\n\r\n```\r\n public class GraphQlQuery\r\n    {\r\n        public string Query { get; set; }\r\n        public string Variables { get; set; }\r\n    }\r\n```\r\n\r\nProcessing of the query:\r\n```\r\n        public async Task<IHttpActionResult> Query(GraphQlQuery query)\r\n        {\r\n            var input = new Inputs();\r\n            var responseModel = await Execute(new MediaSchema(), null, query.Query, inputs: input);\r\n            return Ok(responseModel);\r\n        }\r\n\r\n        private async Task<ExecutionResult> Execute(\r\n            Schema schema,\r\n            object rootObject,\r\n            string query,\r\n            string operationName = null,\r\n            Inputs inputs = null)\r\n        {\r\n            var executer = new DocumentExecuter();\r\n\r\n            return await executer.ExecuteAsync(schema, rootObject, query, operationName, inputs);\r\n        }\r\n\r\n```\r\n\r\nAnd this is the actual Query from the GrahiQl IDE\r\n```\r\nquery getSomeMedia($page:Int!){\r\n  allMedia(pageSize:$page, starts:\"P\"){\r\n    ...mediaInfo,\r\n    articles(amount:2){\r\n      articleId\r\n    }\r\n  }\r\n}\r\n\r\nfragment mediaInfo on Media{\r\n  id\r\n  name\r\n  mediaType\r\n  customerSpecific\r\n}\r\n\r\nVARIABLES\r\n{\r\n   \"page\":10\r\n}\r\n\r\n```\r\nSo how do i pass the variables on to the executor?\r\n\r\nI have tried a number of variations to get the system to handle the variables, and also looked into the source and tests as to how to add the variables to the executor, but in vain.\r\nHelp is very much appreciated.\r\n\r\nAnd it is an awesome work you are doing here. Kudos :+1: "}}