{"action":"created","issue":{"url":"https://api.github.com/repos/graphql-python/graphene/issues/316","repository_url":"https://api.github.com/repos/graphql-python/graphene","labels_url":"https://api.github.com/repos/graphql-python/graphene/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/graphql-python/graphene/issues/316/comments","events_url":"https://api.github.com/repos/graphql-python/graphene/issues/316/events","html_url":"https://github.com/graphql-python/graphene/issues/316","id":181430109,"number":316,"title":"v1.0: Lazily load model class in Field and relay.ConnectionField as in v0.x","user":{"login":"JimVanEeden","id":5991446,"avatar_url":"https://avatars.githubusercontent.com/u/5991446?v=3","gravatar_id":"","url":"https://api.github.com/users/JimVanEeden","html_url":"https://github.com/JimVanEeden","followers_url":"https://api.github.com/users/JimVanEeden/followers","following_url":"https://api.github.com/users/JimVanEeden/following{/other_user}","gists_url":"https://api.github.com/users/JimVanEeden/gists{/gist_id}","starred_url":"https://api.github.com/users/JimVanEeden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JimVanEeden/subscriptions","organizations_url":"https://api.github.com/users/JimVanEeden/orgs","repos_url":"https://api.github.com/users/JimVanEeden/repos","events_url":"https://api.github.com/users/JimVanEeden/events{/privacy}","received_events_url":"https://api.github.com/users/JimVanEeden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-06T14:26:01Z","updated_at":"2016-10-12T23:32:41Z","closed_at":null,"body":"Currently rewriting our GraphQL API to work with graphene 1.0 but I'm coming across a big problem:\r\n\r\nIn order to create the models, I've written a construction class that will convert the actual database models to models used by graphene. There arises a problem however when creating relations on the models using the Field and relay.ConnectionField classes. In graphene 0.x I would be able to provide the name string as argument to Field and relay.ConnectionField, but apparently this is not possible anymore in 1.0 (I'm wondering why you took this out as well). \r\n\r\nIt's impossible to import the model classes in the construction class due to circular dependencies. I'm hoping there is another solution to this problem, other than completely rewriting everything to something that is not logically structured at all anymore. Is this something that is going to change in the future or is there a fix available?"},"comment":{"url":"https://api.github.com/repos/graphql-python/graphene/issues/comments/253369457","html_url":"https://github.com/graphql-python/graphene/issues/316#issuecomment-253369457","issue_url":"https://api.github.com/repos/graphql-python/graphene/issues/316","id":253369457,"user":{"login":"jameswyse","id":1144357,"avatar_url":"https://avatars.githubusercontent.com/u/1144357?v=3","gravatar_id":"","url":"https://api.github.com/users/jameswyse","html_url":"https://github.com/jameswyse","followers_url":"https://api.github.com/users/jameswyse/followers","following_url":"https://api.github.com/users/jameswyse/following{/other_user}","gists_url":"https://api.github.com/users/jameswyse/gists{/gist_id}","starred_url":"https://api.github.com/users/jameswyse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jameswyse/subscriptions","organizations_url":"https://api.github.com/users/jameswyse/orgs","repos_url":"https://api.github.com/users/jameswyse/repos","events_url":"https://api.github.com/users/jameswyse/events{/privacy}","received_events_url":"https://api.github.com/users/jameswyse/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T23:32:41Z","updated_at":"2016-10-12T23:32:41Z","body":"@JimVanEeden `callable(self._type)` might be a good alternative to `inspect.isfunction` :)"}}
{"actor":{"display_login":"jameswyse"}}