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

graphql.schema.Coercing Maven / Gradle / Ivy

The newest version!
package graphql.schema;


public interface Coercing {


    /**
     * Called to convert a result of a DataFetcher to a valid runtime value.
     *
     * @param input is never null
     * @return null if not possible/invalid
     */
    O serialize(Object input);

    /**
     * Called to resolve a input from a variable.
     * Null if not possible.
     *
     * @param input is never null
     * @return null if not possible/invalid
     */
    I parseValue(Object input);

    /**
     * Called to convert a AST node
     *
     * @param input is never null
     * @return null if not possible/invalid
     */
    I parseLiteral(Object input);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy