function isSchemaOfCommonNames()

in src/printers.ts [260:273]


function isSchemaOfCommonNames(schema: GraphQLSchema): boolean {
    const queryType = schema.getQueryType();
    if (queryType && queryType.name !== 'Query') {
        return false;
    }

    const mutationType = schema.getMutationType();
    if (mutationType && mutationType.name !== 'Mutation') {
        return false;
    }

    const subscriptionType = schema.getSubscriptionType();
    return !(subscriptionType && subscriptionType.name !== 'Subscription');
}