common/schema-builder/src/main/java/io/smallrye/graphql/schema/creator/FieldCreator.java
/**
     * Creates a field from a public field.
     * Used by Type and Input
     *
     * @param direction the direction (in/out)
     * @param fieldInfo the java property
     * @return a Field model object
     */
Creates a field from a public field.
Used by Type and Input

@param direction the direction (in/out)
@param fieldInfo the java property
@return a Field model object
Creates a field from a public field . Used by Type and Input @param direction the direction ( in / out ) @param fieldInfo the java property @return a Field model object
public Optional<Field> createFieldForPojo(Direction direction, FieldInfo fieldInfo, Reference parentObjectReference) {
        if (isGraphQlField(direction, fieldInfo, null)) {
            Annotations annotationsForPojo = Annotations.getAnnotationsForPojo(direction, fieldInfo);
            String name = getFieldName(direction, annotationsForPojo, fieldInfo.name());
            Type fieldType = fieldInfo.type();
            Reference reference = referenceCreator.createReferenceForPojoField(direction, fieldType, fieldType,
                    annotationsForPojo, parentObjectReference);
            Field field = new Field(null,
                    fieldInfo.name(),
                    name,
                    reference);
            configure(field, fieldType, annotationsForPojo);
            return Optional.of(field);
        }
        return Optional.empty();
    }
public Optional < Field > createFieldForPojo ( Direction direction , FieldInfo fieldInfo , Reference parentObjectReference ) { if ( isGraphQlField ( direction , fieldInfo , null ) ) { Annotations annotationsForPojo = Annotations . getAnnotationsForPojo ( direction , fieldInfo ) ; String name = getFieldName ( direction , annotationsForPojo , fieldInfo . name ( ) ) ; Type fieldType = fieldInfo . type ( ) ; Reference reference = referenceCreator . createReferenceForPojoField ( direction , fieldType , fieldType , annotationsForPojo , parentObjectReference ) ; Field field = new Field ( null , fieldInfo . name ( ) , name , reference ) ; configure ( field , fieldType , annotationsForPojo ) ; return Optional . of ( field ) ; } return Optional . empty ( ) ; }
Creates a field from a public field.
Creates a field from a public field .
// Name // Field Type