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