All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bretpatterson.schemagen.graphql.annotations.GraphQLSpringELDataFetcher Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package com.bretpatterson.schemagen.graphql.annotations;

import com.bretpatterson.schemagen.graphql.datafetchers.spring.SpringDataFetcher;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Fields annotated with this use the specified data fetcher for retrieval
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD})
public @interface GraphQLSpringELDataFetcher {

	/**
	 * A custom datafetcher you would like to use for this field
	 * @return
	 */
	Class dataFetcher() default SpringDataFetcher.class;

	/**
	 * Spring EL expression that is executed as part of this datafetcher
	 * @return
	 */
	String value();
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy