Get Events from CorrelationId

Hi Team, I am maintaining CorrelationID in MetaData in each and every events, can I get event list by CorrelationID?

internal struct EventMeta
	public string? CausationId { get; set; }
	public string? CorrelationId { get; set; }
	public string? EventType { get; set; }

If you use the metada field when appending events, $by_correlation_id system projection will take care of creating streams for each correlation id

Though to make sure not to have to change the default settigns make sure the field name in the JSon is $correlationId

Hi @yves.lorphelin, thanks for the information. I understood this but my question is how to retrieve these events in C# client by correlationID?