• useGetCollectionQuery

    To run a query within a React component, call useGetCollectionQuery and pass it any options that fit your needs. When your component renders, useGetCollectionQuery 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 } = useGetCollectionQuery({
    variables: {
    id: // value for 'id'
    },
    });

    Parameters

    Returns QueryResult<GetCollectionQuery, Exact<{
        id: string;
    }>>

Generated using TypeDoc