I'm trying to wrap mutations in "namespace-types" ...
# graphql-kotlin
t
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