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

graphql.nadel.util.OperationNameUtil.kt Maven / Gradle / Ivy

Go to download

Nadel is a Java library that combines multiple GrahpQL services together into one API.

There is a newer version: 2024-12-10T04-34-06-f2ee9344
Show newest version
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