graphql/utilities/find_breaking_changes.py
def find_removed_types(
    old_schema: GraphQLSchema, new_schema: GraphQLSchema
) -> List[BreakingChange]:
    """Find removed types.

    Given two schemas, returns a list containing descriptions of any breaking changes
    in the newSchema related to removing an entire type.
    """
    old_type_map = old_schema.type_map
    new_type_map = new_schema.type_map

    breaking_changes = []
    for type_name in old_type_map:
        if type_name not in new_type_map:
            breaking_changes.append(
                BreakingChange(
                    BreakingChangeType.TYPE_REMOVED, f"{type_name} was removed."
                )
            )
    return breaking_changes
Find removed types.

    Given two schemas, returns a list containing descriptions of any breaking changes
    in the newSchema related to removing an entire type.
    
Find removed types.
Given two schemas, returns a list containing descriptions of any breaking changes
in the newSchema related to removing an entire type.
Find removed types . Given two schemas returns a list containing descriptions of any breaking changes in the newSchema related to removing an entire type .
def find_removed_types(
    old_schema: GraphQLSchema, new_schema: GraphQLSchema
) -> List[BreakingChange]:
    old_type_map = old_schema.type_map
    new_type_map = new_schema.type_map
    breaking_changes = []
    for type_name in old_type_map:
        if type_name not in new_type_map:
            breaking_changes.append(
                BreakingChange(
                    BreakingChangeType.TYPE_REMOVED, f"{type_name} was removed."
                )
            )
    return breaking_changes
def find_removed_types ( old_schema : GraphQLSchema , new_schema : GraphQLSchema ) -> List [ BreakingChange ] : old_type_map = old_schema . type_map new_type_map = new_schema . type_map breaking_changes = [ ] for type_name in old_type_map : if type_name not in new_type_map : breaking_changes . append ( BreakingChange ( BreakingChangeType . TYPE_REMOVED , f"{type_name} was removed." ) ) return breaking_changes
Find removed types.
Find removed types .
"""Find removed types.

    Given two schemas, returns a list containing descriptions of any breaking changes
    in the newSchema related to removing an entire type.
    """
old_schema
GraphQLSchema
new_schema
GraphQLSchema