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

graphql.nadel.hooks.ServiceOrError.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.hooks

import graphql.GraphQLError
import graphql.nadel.Service

/**
 * Represents either a [Service] or an error that was generated when trying to resolve the service.
 */
// todo switch this to an Either or sealed class thing, or union types one day…
data class ServiceOrError(
    val service: Service?,
    val error: GraphQLError?,
)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy