Skip to content

Instantly share code, notes, and snippets.

@mdcarmo
Created April 23, 2022 20:14
Show Gist options
  • Save mdcarmo/bc1f8b06d8429e3353615d2bcc9a5d93 to your computer and use it in GitHub Desktop.
Save mdcarmo/bc1f8b06d8429e3353615d2bcc9a5d93 to your computer and use it in GitHub Desktop.
Exemplo de mutação create graphql
Field<CustomerType>(
"createCustomer",
arguments: new QueryArguments(new QueryArgument<NonNullGraphType<CustomerInputType>> { Name = "customer" }),
resolve: context =>
{
var customer = context.GetArgument<Customer>("customer");
return repository.Create(customer);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment