{"action":"created","issue":{"url":"https://api.github.com/repos/maticzav/graphql-shield/issues/109","repository_url":"https://api.github.com/repos/maticzav/graphql-shield","labels_url":"https://api.github.com/repos/maticzav/graphql-shield/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/maticzav/graphql-shield/issues/109/comments","events_url":"https://api.github.com/repos/maticzav/graphql-shield/issues/109/events","html_url":"https://github.com/maticzav/graphql-shield/issues/109","id":346437316,"node_id":"MDU6SXNzdWUzNDY0MzczMTY=","number":109,"title":"Can't handle mixed query","user":{"login":"roytan883","id":4022752,"node_id":"MDQ6VXNlcjQwMjI3NTI=","avatar_url":"https://avatars3.githubusercontent.com/u/4022752?v=4","gravatar_id":"","url":"https://api.github.com/users/roytan883","html_url":"https://github.com/roytan883","followers_url":"https://api.github.com/users/roytan883/followers","following_url":"https://api.github.com/users/roytan883/following{/other_user}","gists_url":"https://api.github.com/users/roytan883/gists{/gist_id}","starred_url":"https://api.github.com/users/roytan883/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roytan883/subscriptions","organizations_url":"https://api.github.com/users/roytan883/orgs","repos_url":"https://api.github.com/users/roytan883/repos","events_url":"https://api.github.com/users/roytan883/events{/privacy}","received_events_url":"https://api.github.com/users/roytan883/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-01T03:45:09Z","updated_at":"2018-08-14T22:34:24Z","closed_at":null,"author_association":"NONE","body":"code like this:\r\n```js\r\nconst isAuthenticated = rule()(async (parent, args, ctx, info) => {\r\n  console.log(\"call isAuthenticated args = \", args)\r\n  return true\r\n})\r\nconst permissions = shield({\r\n  Query: {\r\n    feed: isAuthenticated,\r\n    post: isAuthenticated,\r\n  },\r\n})\r\n```\r\nIf the `query` like this, the `isAuthenticated` only be called once !!!\r\n```\r\nquery{\r\n  feed{\r\n    id\r\n    text\r\n  }\r\n  post(id:\"cjk9uyalu00110803ow0wrxwm\"){\r\n    id\r\n    title\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/maticzav/graphql-shield/issues/comments/413037660","html_url":"https://github.com/maticzav/graphql-shield/issues/109#issuecomment-413037660","issue_url":"https://api.github.com/repos/maticzav/graphql-shield/issues/109","id":413037660,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzAzNzY2MA==","user":{"login":"maticzav","id":3924224,"node_id":"MDQ6VXNlcjM5MjQyMjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3924224?v=4","gravatar_id":"","url":"https://api.github.com/users/maticzav","html_url":"https://github.com/maticzav","followers_url":"https://api.github.com/users/maticzav/followers","following_url":"https://api.github.com/users/maticzav/following{/other_user}","gists_url":"https://api.github.com/users/maticzav/gists{/gist_id}","starred_url":"https://api.github.com/users/maticzav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maticzav/subscriptions","organizations_url":"https://api.github.com/users/maticzav/orgs","repos_url":"https://api.github.com/users/maticzav/repos","events_url":"https://api.github.com/users/maticzav/events{/privacy}","received_events_url":"https://api.github.com/users/maticzav/received_events","type":"User","site_admin":false},"created_at":"2018-08-14T22:34:24Z","updated_at":"2018-08-14T22:34:24Z","author_association":"OWNER","body":"Hey @roytan883 have you made any progress on this? 🙂 "}}
{"actor":{"display_login":"maticzav"}}