File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
apps/demo-game/src/graphql
packages/platform/src/types Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1+ import { UserRole } from '@gbl-uzh/platform'
12import {
23 generateBaseMutations ,
34 generateBaseQueries ,
@@ -11,13 +12,13 @@ import {
1112 PeriodSegmentFactsInput ,
1213 PeriodSegmentFactsSchema ,
1314} from './types'
14-
1515export * from '@gbl-uzh/platform/dist/nexus'
1616export * from './types'
1717
1818export const Query = generateBaseQueries ( )
1919export const Mutation = generateBaseMutations < PeriodFacts , PeriodSegmentFacts > ( {
20- roleAssigner : ( ix ) => null ,
20+ // TODO(JJ): Double-check with RS
21+ roleAssigner : ( ix ) => UserRole . PLAYER ,
2122 reducers,
2223 schemas : {
2324 PeriodFactsSchema,
Original file line number Diff line number Diff line change @@ -25,11 +25,13 @@ interface GenerateBaseMutationsArgs {
2525 reducers ?: any
2626 schemas ?: any
2727 inputTypes ?: any
28+ // TODO(JJ): is returning void right here? It should return a UserRole, no?
2829 roleAssigner ?: ( ix : number ) => void
2930}
3031
3132export function generateBaseMutations < PeriodFacts , PeriodSegmentFacts > ( {
3233 reducers = defaultReducers ,
34+ // TODO(JJ): What Is Unset? Why string?
3335 roleAssigner = ( ) => 'UNSET' ,
3436 schemas = defaultSchemas ,
3537 inputTypes = defaultInputTypes ,
You can’t perform that action at this time.
0 commit comments