{"action":"closed","issue":{"url":"https://api.github.com/repos/Akryum/vue-apollo/issues/247","repository_url":"https://api.github.com/repos/Akryum/vue-apollo","labels_url":"https://api.github.com/repos/Akryum/vue-apollo/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/Akryum/vue-apollo/issues/247/comments","events_url":"https://api.github.com/repos/Akryum/vue-apollo/issues/247/events","html_url":"https://github.com/Akryum/vue-apollo/issues/247","id":308578624,"number":247,"title":"Setting metadata to smart query","user":{"login":"jantajov","id":12242398,"avatar_url":"https://avatars2.githubusercontent.com/u/12242398?v=4","gravatar_id":"","url":"https://api.github.com/users/jantajov","html_url":"https://github.com/jantajov","followers_url":"https://api.github.com/users/jantajov/followers","following_url":"https://api.github.com/users/jantajov/following{/other_user}","gists_url":"https://api.github.com/users/jantajov/gists{/gist_id}","starred_url":"https://api.github.com/users/jantajov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jantajov/subscriptions","organizations_url":"https://api.github.com/users/jantajov/orgs","repos_url":"https://api.github.com/users/jantajov/repos","events_url":"https://api.github.com/users/jantajov/events{/privacy}","received_events_url":"https://api.github.com/users/jantajov/received_events","type":"User","site_admin":false},"labels":[{"id":444858857,"url":"https://api.github.com/repos/Akryum/vue-apollo/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-26T13:45:15Z","updated_at":"2018-03-27T09:37:10Z","closed_at":"2018-03-27T09:37:10Z","author_association":"NONE","body":"I am trying to set metadata to my smart query as follows.\r\n\r\n    apollo: {\r\n      realties: {\r\n        metadata: {mainquery: true},\r\n        query: gql`query { realties { name } }`\r\n      }\r\n    }\r\n\r\nBut cannot access them :(\r\n\r\n```\r\nconst loadingLink = new ApolloLink((operation, forward) => {\r\n  console.log('operation', operation)\r\n  return forward(operation)\r\n})\r\n```\r\n\r\nAPI reference for query show there can be metadata field.\r\nhttps://www.apollographql.com/docs/react/api/apollo-client.html#ApolloClient.query\r\n\r\nHow can I set metadata for my smart query and how can I access it in ApolloLink?"}}
{"actor":{"display_login":"Akryum"}}