https://kotlinlang.org logo
#graphql-kotlin
Title
# graphql-kotlin
t

Tobias

08/10/2021, 8:08 AM
I'm trying to wrap mutations in "namespace-types" according to https://graphql-rules.com/rules/mutation-namespaces , but can't figure out how.
E.g:
Copy code
type Mutation {
    article: ArticleMutations
  }

  type ArticleMutations {
    like: Boolean
    unlike: Boolean
  }
instead of
Copy code
type Mutation {
   like: Boolean
   unlike: Boolean
}
I've tried having a
fun
returning an object with a method (obviously didn't work),
fun
returning an object implementing
com.expediagroup.graphql.server.operations.Mutation
,
val
returning an object.
Nvm, i read the schema wrong
7 Views