We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is probably an Apollo bug but wanted to double check.
I use apollo link rest like so:
query ContentPart($htmlUrl: String!) { contentPart(htmlUrl: $htmlUrl) @rest(type: "ContentPartHtml", path: ":htmlUrl") { id html } } const restLink = new RestLink({ uri: BASE_URL_OF_API, customFetch: fetch, responseTransformer: async (response, typeName) => { const html = await response.text() return { id: response.url, html, __typename: typeName } } }); return new ApolloClient({ link: authLink.concat(restLink), cache, })
Then I try to make use of Apollo clients useQuery:
const {data, error} = useQuery(ContentPartDocument, { variables: { htmlUrl: url, }, client, onCompleted:(data)=> console.log(data) })
Where the returned data and error from the useQuery hook are undefined, but the data in onCompleted is set and the call is made successfully...
Is this a bug in Apollo client?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is probably an Apollo bug but wanted to double check.
I use apollo link rest like so:
Then I try to make use of Apollo clients useQuery:
Where the returned data and error from the useQuery hook are undefined, but the data in onCompleted is set and the call is made successfully...
Is this a bug in Apollo client?
The text was updated successfully, but these errors were encountered: