refactor type conversions
Today we have a map that we maintain to convert between ABI, Assembly Script and that is what is what we simply use to map to GraphQL Types. This approach is liming because then we need to do hacks like this to fix issues with code-generation
#1025 will also help cause immutable makes it harder to deal with TS when writing and makes it harder to follow code.
@saihaj what do you recommend instead of the current approach?
@saihaj what do you recommend instead of the current approach?
I think first step is moving away from the immutable and then I think we should create another MAP that maps a Value -> GraphQL type so there is a clear distinction on what a value will be converted to since today it is implicit inference that AssemblyScript -> Value == GraphQL Type