{"action":"closed","issue":{"url":"https://api.github.com/repos/apollographql/apollo-link-state/issues/265","repository_url":"https://api.github.com/repos/apollographql/apollo-link-state","labels_url":"https://api.github.com/repos/apollographql/apollo-link-state/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/apollo-link-state/issues/265/comments","events_url":"https://api.github.com/repos/apollographql/apollo-link-state/issues/265/events","html_url":"https://github.com/apollographql/apollo-link-state/issues/265","id":335120872,"node_id":"MDU6SXNzdWUzMzUxMjA4NzI=","number":265,"title":"Link State complains when combining local and remote state","user":{"login":"rotexhawk","id":12015105,"node_id":"MDQ6VXNlcjEyMDE1MTA1","avatar_url":"https://avatars1.githubusercontent.com/u/12015105?v=4","gravatar_id":"","url":"https://api.github.com/users/rotexhawk","html_url":"https://github.com/rotexhawk","followers_url":"https://api.github.com/users/rotexhawk/followers","following_url":"https://api.github.com/users/rotexhawk/following{/other_user}","gists_url":"https://api.github.com/users/rotexhawk/gists{/gist_id}","starred_url":"https://api.github.com/users/rotexhawk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rotexhawk/subscriptions","organizations_url":"https://api.github.com/users/rotexhawk/orgs","repos_url":"https://api.github.com/users/rotexhawk/repos","events_url":"https://api.github.com/users/rotexhawk/events{/privacy}","received_events_url":"https://api.github.com/users/rotexhawk/received_events","type":"User","site_admin":false},"labels":[{"id":1089157142,"node_id":"MDU6TGFiZWwxMDg5MTU3MTQy","url":"https://api.github.com/repos/apollographql/apollo-link-state/labels/ac-local-state-todo","name":"ac-local-state-todo","color":"ebfc6a","default":false}],"state":"closed","locked":false,"assignee":{"login":"hwillson","id":137740,"node_id":"MDQ6VXNlcjEzNzc0MA==","avatar_url":"https://avatars1.githubusercontent.com/u/137740?v=4","gravatar_id":"","url":"https://api.github.com/users/hwillson","html_url":"https://github.com/hwillson","followers_url":"https://api.github.com/users/hwillson/followers","following_url":"https://api.github.com/users/hwillson/following{/other_user}","gists_url":"https://api.github.com/users/hwillson/gists{/gist_id}","starred_url":"https://api.github.com/users/hwillson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwillson/subscriptions","organizations_url":"https://api.github.com/users/hwillson/orgs","repos_url":"https://api.github.com/users/hwillson/repos","events_url":"https://api.github.com/users/hwillson/events{/privacy}","received_events_url":"https://api.github.com/users/hwillson/received_events","type":"User","site_admin":false},"assignees":[{"login":"hwillson","id":137740,"node_id":"MDQ6VXNlcjEzNzc0MA==","avatar_url":"https://avatars1.githubusercontent.com/u/137740?v=4","gravatar_id":"","url":"https://api.github.com/users/hwillson","html_url":"https://github.com/hwillson","followers_url":"https://api.github.com/users/hwillson/followers","following_url":"https://api.github.com/users/hwillson/following{/other_user}","gists_url":"https://api.github.com/users/hwillson/gists{/gist_id}","starred_url":"https://api.github.com/users/hwillson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwillson/subscriptions","organizations_url":"https://api.github.com/users/hwillson/orgs","repos_url":"https://api.github.com/users/hwillson/repos","events_url":"https://api.github.com/users/hwillson/events{/privacy}","received_events_url":"https://api.github.com/users/hwillson/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-06-23T18:22:19Z","updated_at":"2018-10-20T00:50:58Z","closed_at":"2018-10-20T00:50:58Z","author_association":"NONE","body":"<!--**Issue Labels**\r\n\r\nWhile not necessary, you can help organize our issues by labeling this issue when you open it.  To add a label automatically, simply [x] mark the appropriate box below:\r\n\r\n- [ ] has-reproduction\r\n- [ ] feature\r\n- [ ] docs\r\n- [ ] blocking\r\n- [ x ] good first issue\r\n\r\nTo add a label not listed above, simply place `/label another-label-name` on a line by itself.\r\n-->\r\n\r\nI am trying to combine local and remote state for a search page. The local state has the form fields and the remote data is added to the results field in the query below. \r\n\r\nI get this warning. I understand that the server doesn't have a form field but I am marking `form` with `@client` directive. Not sure why link-state is expecting the form field from the server. \r\n\r\n````\r\nMissing field form in {\r\n  \"__typename\": \"Search\",\r\n  \"results\": [\r\n    {\r\n      \"id\": 77,\r\n      \"email\": \"Nayeli_Langworth@Jo\r\n````\r\n\r\n````javascript\r\nimport gql from \"graphql-tag\";\r\n\r\nexport const searchQuery = gql`\r\n    query {\r\n        search {\r\n            form @client {\r\n                sort\r\n            }\r\n            results {\r\n                id\r\n                email\r\n                nicename\r\n                thumbnail\r\n                specialties\r\n                tools\r\n                reading_style\r\n            }\r\n        }\r\n    }\r\n`;\r\n```` \r\n\r\nHere is the default state: \r\n\r\n````javascript\r\nconst defaults = {\r\n    search: {\r\n        __typename: \"Search\",\r\n        form: {\r\n            __typename: \"form\",\r\n            sort: [\r\n                \"Available\",\r\n                \"Busy\",\r\n                \"Star Rating\",\r\n                \"Alphabetical\",\r\n                \"New\",\r\n                \"Price-(Low to High)\",\r\n                \"Price-(Hight to Low)\"\r\n            ],\r\n        }\r\n    }\r\n};\r\n````"}}
{"actor":{"display_login":"hwillson"}}