CustomOpArguments<Shape, RefBag>: Shape["arguments"] extends null
    ? never
    : ResolveFields<RefBag, Shape["arguments"]>

Digs out custom operation arguments, mapped to the intended graphql types. using the existing ResolveFields utility type. This handles:

  • Basic scalar fields
  • Enum types
  • Custom types (including nested structures)
  • Reference types

Type Parameters