public class GraphQLDocumentParser
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static graphql.parser.MultiSourceReader |
createMultiSourceReader(java.util.List<java.lang.String> schemaPaths) |
static ExtendedDocument |
getDocumentFromIntrospectionResult(MappingConfig mappingConfig,
java.lang.String introspectionResult)
Generate an extended document from introspection result file
|
static ExtendedDocument |
getDocumentFromSchemas(MappingConfig mappingConfig,
java.util.List<java.lang.String> schemaPaths)
Generate an extended document from schema files
|
public static ExtendedDocument getDocumentFromSchemas(MappingConfig mappingConfig, java.util.List<java.lang.String> schemaPaths) throws java.io.IOException
mappingConfig
- Global mapping configschemaPaths
- Paths to GraphQL schema filesjava.io.IOException
- in case unable to read the file contentpublic static ExtendedDocument getDocumentFromIntrospectionResult(MappingConfig mappingConfig, java.lang.String introspectionResult) throws java.io.IOException
mappingConfig
- Global mapping configintrospectionResult
- Path to introspection result filejava.io.IOException
- in case unable to read the file contentpublic static graphql.parser.MultiSourceReader createMultiSourceReader(java.util.List<java.lang.String> schemaPaths) throws java.io.IOException
java.io.IOException