toggle menu
lib
0.0.266
jvm
switch theme
search in API
lib
/
com.prettybyte.klerk.graphql
/
GenericQuery
Generic
Query
class
GenericQuery
<
C
:
KlerkContext
,
V
>
(
klerk
:
Klerk
<
C
,
V
>
,
contextFactory
:
suspend
(
GraphQLContext
)
->
C
)
:
Query
Members
Constructors
Generic
Query
Link copied to clipboard
constructor
(
klerk
:
Klerk
<
C
,
V
>
,
contextFactory
:
suspend
(
GraphQLContext
)
->
C
)
Functions
collections
Link copied to clipboard
suspend
fun
collections
(
)
:
List
<
KlerkCollection
>
model
Link copied to clipboard
suspend
fun
model
(
id
:
ID
,
env
:
DataFetchingEnvironment
)
:
KlerkModel
?
models
Link copied to clipboard
suspend
fun
models
(
collectionId
:
String
,
first
:
Int
?
=
10
,
after
:
String
?
=
null
,
before
:
String
?
=
null
,
env
:
DataFetchingEnvironment
)
:
KlerkModelsResponse
void
Commands
Link copied to clipboard
suspend
fun
voidCommands
(
type
:
String
,
env
:
DataFetchingEnvironment
)
:
List
<
KlerkCommand
>