I am trying to add a plugin to Altair, using the following code
app.UseGraphQLAltair("/ui/altair", new AltairOptions
{
Settings = new Dictionary<string, object?>()
{
{ "plugin.list", new[] { "foobar" } }
}
});
But I get the following error
NotSupportedException: JsonTypeInfo metadata for type 'System.String[]' was not provided by TypeInfoResolver of type 'Platform.Web.Altair.SourceGenerationContext'. If using source generation, ensure that all root types passed to the serializer have been annotated with 'JsonSerializableAttribute', along with any types that might be serialized polymorphically.