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