(schema: GraphQLSchema)
return [t for t in schema_types if check_type(t)]
Get all types that include the @key directive.
Get all types that include the
Get all types that include the
def get_entity_types(schema: GraphQLSchema) -> List[GraphQLNamedType]:
    """Get all types that include the @key directive."""
    schema_types = schema.type_map.values()

    def check_type(t):
        return isinstance(t, GraphQLObjectType) and includes_directive(t, "key")

    return [t for t in schema_types if check_type(t)]
def get_entity_types ( schema : GraphQLSchema ) -> List [ GraphQLNamedType ] : schema_types = schema . type_map . values ( ) def check_type ( t ) : return isinstance ( t , GraphQLObjectType ) and includes_directive ( t , "key" ) return [ t for t in schema_types if check_type ( t ) ]