{"action":"created","issue":{"url":"https://api.github.com/repos/andimarek/graphql-java/issues/78","labels_url":"https://api.github.com/repos/andimarek/graphql-java/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/andimarek/graphql-java/issues/78/comments","events_url":"https://api.github.com/repos/andimarek/graphql-java/issues/78/events","html_url":"https://github.com/andimarek/graphql-java/issues/78","id":130173608,"number":78,"title":"Edge should be a Generic type so schema can be inferred from it.","user":{"login":"bpatters","id":2925592,"avatar_url":"https://avatars.githubusercontent.com/u/2925592?v=3","gravatar_id":"","url":"https://api.github.com/users/bpatters","html_url":"https://github.com/bpatters","followers_url":"https://api.github.com/users/bpatters/followers","following_url":"https://api.github.com/users/bpatters/following{/other_user}","gists_url":"https://api.github.com/users/bpatters/gists{/gist_id}","starred_url":"https://api.github.com/users/bpatters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpatters/subscriptions","organizations_url":"https://api.github.com/users/bpatters/orgs","repos_url":"https://api.github.com/users/bpatters/repos","events_url":"https://api.github.com/users/bpatters/events{/privacy}","received_events_url":"https://api.github.com/users/bpatters/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-31T19:43:25Z","updated_at":"2016-02-01T14:43:12Z","closed_at":null,"body":"I'm currently working on a Java POJO --> GraphQL schema generator (see github schemagen-graphql) and the EdgeClass needs to be a Generic so that node type can be inferred during schema generation."},"comment":{"url":"https://api.github.com/repos/andimarek/graphql-java/issues/comments/177998909","html_url":"https://github.com/andimarek/graphql-java/issues/78#issuecomment-177998909","issue_url":"https://api.github.com/repos/andimarek/graphql-java/issues/78","id":177998909,"user":{"login":"bpatters","id":2925592,"avatar_url":"https://avatars.githubusercontent.com/u/2925592?v=3","gravatar_id":"","url":"https://api.github.com/users/bpatters","html_url":"https://github.com/bpatters","followers_url":"https://api.github.com/users/bpatters/followers","following_url":"https://api.github.com/users/bpatters/following{/other_user}","gists_url":"https://api.github.com/users/bpatters/gists{/gist_id}","starred_url":"https://api.github.com/users/bpatters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpatters/subscriptions","organizations_url":"https://api.github.com/users/bpatters/orgs","repos_url":"https://api.github.com/users/bpatters/repos","events_url":"https://api.github.com/users/bpatters/events{/privacy}","received_events_url":"https://api.github.com/users/bpatters/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T14:43:12Z","updated_at":"2016-02-01T14:43:12Z","body":"Yea here's my local repository version of the class:\r\nhttps://github.com/bpatters/schemagen-graphql/blob/master/src/main/java/com/bretpatterson/schemagen/graphql/relay/Edge.java\r\n\r\nAnd my local version of Connection.java class\r\nhttps://github.com/bpatters/schemagen-graphql/blob/master/src/main/java/com/bretpatterson/schemagen/graphql/relay/RelayConnection.java\r\n\r\n\r\nThese are both Generics so that I can use reflection to generate the GraphQL schema from the definition of the object. For example in my test case I have a:\r\nGameDTO which has a connection to the users in the game. I need to define this as:\r\nConnection<UserDTO> and then have the type propagate down through the Connection object.\r\n\r\nIE:\r\n```\r\npublic class Connection<T> {\r\n\tprivate List<Edge<T>> edges;\r\n\tprivate PageInfo pageInfo;\r\n}\r\n```\r\n\r\nthis way I can define the Connection as above, and the schemgen generator can fully qualify the GraphQL schema based on the definition of:\r\n```\r\npublic class GameDTO {\r\n     Connection<UserDTO> users;\r\n}\r\n```\r\nSo that the GraphQL Schema generation can fully generate the schema from the definition.\r\n"}}