We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7feb81 commit f026bcaCopy full SHA for f026bca
examples/apollo-client-2/component.tsx
@@ -6,10 +6,10 @@ import { Query } from 'react-apollo';
6
const MyComponent: React.FC = () => {
7
return (
8
<div>
9
- <Query query={RatesDocument}>
+ <Query query={RatesDocument} variables={{ currency: 'ILS' }}>
10
{
11
({ data }) => {
12
- return data?.rates[0].rate;
+ return <span>{data?.rates[0].rate}</span>;
13
}
14
15
</Query>
0 commit comments