GenericQuery

class GenericQuery<C : KlerkContext, V>(klerk: Klerk<C, V>, contextFactory: suspend (GraphQLContext) -> C) : Query

Constructors

Link copied to clipboard
constructor(klerk: Klerk<C, V>, contextFactory: suspend (GraphQLContext) -> C)

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun model(id: ID, env: DataFetchingEnvironment): KlerkModel?
Link copied to clipboard
suspend fun models(collectionId: String, first: Int? = 10, after: String? = null, before: String? = null, env: DataFetchingEnvironment): KlerkModelsResponse
Link copied to clipboard
suspend fun voidCommands(type: String, env: DataFetchingEnvironment): List<KlerkCommand>