ApolloMetadata

@JsonClass(generateAdapter = true)
data class ApolloMetadata(    val commonMetadata: CommonMetadata?,     val compilerMetadata: CompilerMetadata,     val moduleName: String)

metadata generated by a previous run of ApolloCompiler. The schema and fragments are stored as GraphQL document strings. This slightly unfortunate because that means we will parse them twice but there isn't many alternatives as validation and IR-building takes GQLDocuments as inputs. A future version could serialize GQLNode as json in order to keep the SourceLocation attributes and display better error messages

Constructors

Link copied to clipboard
fun ApolloMetadata(    commonMetadata: CommonMetadata?,     compilerMetadata: CompilerMetadata,     moduleName: String,     generateDataBuilders: Boolean)
Link copied to clipboard
fun ApolloMetadata(    commonMetadata: CommonMetadata?,     compilerMetadata: CompilerMetadata,     moduleName: String)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun writeTo(file: File)

Properties

Link copied to clipboard
val commonMetadata: CommonMetadata?

Only non-null for the root module

Link copied to clipboard
val compilerMetadata: CompilerMetadata
Link copied to clipboard
var generateDataBuilders: Boolean = false
Link copied to clipboard
val moduleName: String