This package extends SensitiveString to integrate it with HotChocolate so it can be used in inputs and responses.
using HotChocolate.Data;
using TextPrivacy.SensitiveString.HotChocolate;
var builder = WebApplication.CreateBuilder(args);
builder.Services
.AddGraphQLServer()
.AddSensitiveStringSupport()
.AddFiltering(c => c.AddDefaults()
.AddSensitiveStringSupport()
)
.AddSorting(c => c.AddDefaults()
.AddSensitiveStringSupport()
);