graphql.nadel.util.OperationNameUtil.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nadel Show documentation
Show all versions of nadel Show documentation
Nadel is a Java library that combines multiple GrahpQL services together into one API.
package graphql.nadel.util
internal object OperationNameUtil {
/**
* This is deprecated because we are moving away from this nadel_2_service naming scheme. We are
* just forwarding operation names in the future. But for now, we need to support it for migration
* purposes.
*/
@Deprecated("")
fun getLegacyOperationName(serviceName: String, originalOperationName: String?): String? {
val baseName = "nadel_2_$serviceName"
return if (originalOperationName != null) {
baseName + "_" + originalOperationName
} else {
baseName
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy