private object ResolveItem(IResolveFieldContext <RtEntityUpdateItemDto> arg) { var rtEntity = (RtEntity)arg.Source.UserContext; return(RtEntityDtoType.CreateRtEntityDto(rtEntity)); }
/// <summary> /// Constructor /// </summary> /// <param name="rtEntityDtoType">GraphQL type the corresponding RtEntity type</param> public RtEntityUpdateItemDtoType(RtEntityDtoType rtEntityDtoType) { Name = $"{rtEntityDtoType.Name}{CommonConstants.GraphQlUpdateSuffix}"; this.Field("Item", "The corresponding item", graphType: rtEntityDtoType, resolve: ResolveItem); Field(o => o.UpdateState, type: typeof(UpdateTypesDtoType)); }