Skip to content

Instantly share code, notes, and snippets.

@activebiz
Created February 3, 2020 09:54
Show Gist options
  • Save activebiz/d383f1edf8cc9d1ad3c9d5483620c2dd to your computer and use it in GitHub Desktop.
Save activebiz/d383f1edf8cc9d1ad3c9d5483620c2dd to your computer and use it in GitHub Desktop.
protected override void Configure(IObjectTypeDescriptor descriptor)
{
descriptor.Field<MyField>(f => f.CreateModel(default))
.Argument("input", a => a.Type<NonNullType<MyInputType>>())
.UseValidator<MyModel, MyInputTypeValidator>()
.Type<NonNullType<MyModelResult>>();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment