Closed victorteokw closed 6 years ago
GraphQL union type only supports object type. For string or int, or boolean or array. This is still a necessary feature.
When updating object which is defined as mixed, it has a merge behavior which is not what we want. And it triggers not updating bug.
reference will not be supported if using this type. however, mongoose doesn't know what's referenced also. So let's support this as a custom scalar type and not support reference yet.