Eliminate compact helper function from Query.tsx.
Eliminate compact helper function from Query.tsx.

Undefined values were not necessarily a problem in this code, so the
compact helper was probably not strictly necessary to begin with, but the
most likely cause of undefined values was the unnecessary destructuring of
props, and the enumeration of all properties when creating the new object.
Object spread syntax is a better tool for this job.

Perhaps more importantly, by eliminating the compact helper function,
whose return type was any, we exposed some typing problems with the
extractOptsFromProps method, which I have also fixed.

apollographql/react-apollo,apollographql/react-apollo,apollostack/react-apollo,apollostack/react-apollo