To run a query within a React component, call useFindCollectionLocationsByTagQuery and pass it any options that fit your needs.
When your component renders, useFindCollectionLocationsByTagQuery 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 } = useFindCollectionLocationsByTagQuery({ variables: { collectionId:// value for 'collectionId' tags: // value for 'tags' first: // value for 'first' after: // value for 'after' }, });
useFindCollectionLocationsByTagQuery
To run a query within a React component, call
useFindCollectionLocationsByTagQuery
and pass it any options that fit your needs. When your component renders,useFindCollectionLocationsByTagQuery
returns an object from Apollo Client that contains loading, error, and data properties you can use to render your UI.Example