Skip to content

Commit f026bca

Browse files
committed
update example
1 parent e7feb81 commit f026bca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/apollo-client-2/component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import { Query } from 'react-apollo';
66
const MyComponent: React.FC = () => {
77
return (
88
<div>
9-
<Query query={RatesDocument}>
9+
<Query query={RatesDocument} variables={{ currency: 'ILS' }}>
1010
{
1111
({ data }) => {
12-
return data?.rates[0].rate;
12+
return <span>{data?.rates[0].rate}</span>;
1313
}
1414
}
1515
</Query>

0 commit comments

Comments
 (0)