public final class ServiceSDLPrinter
extends java.lang.Object
_service { sdl } query and is compatible with Federation v1 and v2 specs.| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
generateServiceSDL(graphql.schema.GraphQLSchema schema,
boolean queryTypeShouldBeEmpty)
Generate service SDL compatible with Federation v1 specification.
|
static java.lang.String |
generateServiceSDLV2(graphql.schema.GraphQLSchema schema)
Generate service SDL compatible with Federation v2 specification.
|
public static java.lang.String generateServiceSDL(graphql.schema.GraphQLSchema schema,
boolean queryTypeShouldBeEmpty)
schema - target schemaqueryTypeShouldBeEmpty - boolean indicating whether query type contains "fake" query that
should be removed (at least a single query has to be present for graphql-java to consider
it as a valid schema)public static java.lang.String generateServiceSDLV2(graphql.schema.GraphQLSchema schema)
schema - target schema