Description
As far as I understand, it is the recommended approach to use a root object when we build the schema with buildSchema, because we cannot associate resolver functions when using buildSchema. With this approach the default resolvers are used (AFAIK). The problem is, that we can not use interfaces or union types (defined with SDL), because we can not associate the resolveType function - is that correct? If yes, how can we provide resolveType when using graphql-js with SDL?
The problem here is, that on graphql.org the examples are written for apollo-server, but the graphl-js examples show another approach!
Is there a reason why graphql-js does not use the same approach as graphql-tools (makeExecuteableSchema)? So writing "explicit" resolver functions and not using default resolvers?
What is the recommended approach (or the spec compliant approach)? It seems, that default resolvers are not specified in the spec?
This seems to be very confusing for people, when reading graphql.org and then implementing a graphl-js server.
I appreciate every answer, that clarifies some of my points! Thank you very much!