Along the way here I found out that mocks would override resolvers by default, thus defeating the purpose of hacking on resolvers. Solution: set mockEntireSchema: false in the server config.
This sticks in cellType and outputType in cells and outputs respectively.
Unanswered questions for me:
Is there any way to enforce that a type only takes one of a collection of enum values?
This seems awfully redundant to have to check properties within the resolveType for union types when they could map directly. Is there a better way?
Along the way here I found out that
mocks
would override resolvers by default, thus defeating the purpose of hacking on resolvers. Solution: setmockEntireSchema: false
in the server config.This sticks in
cellType
andoutputType
in cells and outputs respectively.Unanswered questions for me:
resolveType
for union types when they could map directly. Is there a better way?