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

graphql.schema.idl.SchemaGeneratorPostProcessing Maven / Gradle / Ivy

There is a newer version: 230521-nf-execution
Show newest version
package graphql.schema.idl;

import graphql.DeprecatedAt;
import graphql.PublicSpi;
import graphql.schema.GraphQLSchema;

/**
 * These are called by the {@link SchemaGenerator} after a valid schema has been built
 * and they can then adjust it accordingly with some sort of post processing.
 *
 * @deprecated This mechanism can be achieved in a better way via {@link graphql.schema.SchemaTransformer}
 * after the schema is built
 */
@PublicSpi
@Deprecated
@DeprecatedAt(value = "2022-10-29")
public interface SchemaGeneratorPostProcessing {

    /**
     * Called to transform the schema from its built state into something else
     *
     * @param originalSchema the original built schema
     *
     * @return a non null schema
     */
    GraphQLSchema process(GraphQLSchema originalSchema);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy