-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I looked at the docs for nexus and the source code here, but no luck. I also I tried to do something like this, but no dice:
@nxs.objectType({
description: 'Namespace for information related to the app',
})
export class App {
constructor (private ctx: ExecContext) {}
@nxs.queryField(() => {
return { type: App }
})
static app (_, ctx) {
return new App(ctx)
}
@nxs.mutationField(() => {
return {
name: 'initProject',
type: class {
constructor(someValue: string) {}
}
}
})
public async initProject () {
return { msg: 'ok!' }
}
}Metadata
Metadata
Assignees
Labels
No labels