Ejemplo n.º 1
0
        private static InputFieldDefinition CreateDefinition(
            IDescriptorContext context, InputObjectType filterType)
        {
            InputFieldDefinition definition = InputFieldDescriptor
                                              .New(context, "AND")
                                              .CreateDefinition();

            definition.Type = new SchemaTypeReference(
                new ListType(new NonNullType(filterType)));

            return(definition);
        }
    protected override void OnCompleteFields(
        IDictionary <NameString, InputFieldDefinition> fields,
        ISet <PropertyInfo> handledProperties)
    {
        if (Definition.Fields.IsImplicitBinding())
        {
            FieldDescriptorUtilities.AddImplicitFields(
                this,
                p => InputFieldDescriptor
                .New(Context, p)
                .CreateDefinition(),
                fields,
                handledProperties);
        }

        base.OnCompleteFields(fields, handledProperties);
    }
Ejemplo n.º 3
0
 private static InputFieldDefinition CreateDefinition(
     IDescriptorContext context) =>
 InputFieldDescriptor
 .New(context, _name)
 .CreateDefinition();