cc.voox.graphql.annotation.QueryField Maven / Gradle / Ivy
The newest version!
package cc.voox.graphql.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface QueryField {
/**
* field name
*/
String value();
/**
* Will get field value from root entity if source is true
*/
boolean source() default false;
/**
* Will get root entity if root is true
* if source is true, root is disable
*/
boolean root() default false;
boolean required() default false;
String description() default "";
Class> type() default Void.class;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy