Skip to content

Unable to add plugin to Altair through Settings property #1204

@nekosaur

Description

@nekosaur

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions