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

com.apollographql.apollo.compiler.ir.Variable.kt Maven / Gradle / Ivy

/**
 * Copyright 2018-2019 Amazon.com,
 * Inc. or its affiliates. All Rights Reserved.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

package com.apollographql.apollo.compiler.ir

data class Variable(
    val name: String,
    val type: String
) {
  fun optional(): Boolean = !type.endsWith(suffix = "!")
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy