To run a query within a React component, call useReverseSearchPlaceByPositionQuery and pass it any options that fit your needs.
When your component renders, useReverseSearchPlaceByPositionQuery returns an object from Apollo Client that contains loading, error, and data properties
you can use to render your UI.
Example
const { data, loading, error } = useReverseSearchPlaceByPositionQuery({ variables: { focus:// value for 'focus' sources: // value for 'sources' first: // value for 'first' }, });
useReverseSearchPlaceByPositionQuery
To run a query within a React component, call
useReverseSearchPlaceByPositionQuery
and pass it any options that fit your needs. When your component renders,useReverseSearchPlaceByPositionQuery
returns an object from Apollo Client that contains loading, error, and data properties you can use to render your UI.Example