Creates a new GraphQLClusterClient instance.
The GraphQL data provider to use for the mutation.
Run a cluster analysis on the server.
Sends the RunClusterAnalysis mutation, then parses the JSON-string
fields (MetricsJSON / ClustersJSON / PointsJSON) into typed objects.
The clustering parameters (entity, algorithm, K, etc.).
A Promise resolving to a fully-parsed RunClusterAnalysisResult.
Client for running cluster analysis on the server through GraphQL.
The heavy clustering / dimensionality-reduction / LLM-naming pipeline runs server-side (via
@memberjunction/clustering-engine); this client is a thin, strongly-typed transport that sends theRunClusterAnalysismutation and parses the JSON-string fields back into typed objects.Follows the same naming + construction convention as the other GraphQL clients in this package (
GraphQLAIClient,GraphQLEncryptionClient, etc.).Example