Edit page

Complex input types with @DuplexObjectType and @DuplexField

Sometimes we'd like to define a single type as both input and output object type. That's where DuplexObjectType comes in. Of course you only want to take a subset of all fields as input-so just mark those that you don't want in the input as regular @Field().