apollo-client v1.1.1 Release Notes
-
- The
flattenSelections
helper function is no longer exported fromapollo-utilities
, sincegetDirectiveNames
has been reimplemented without usingflattenSelections
, andflattenSelections
has no clear purpose now. If you need the old functionality, use a visitor: ```ts import { visit } from "graphql/language/visitor";
function flattenSelections(selection: SelectionNode) { const selections: SelectionNode[] = []; visit(selection, { SelectionSet(ss) { selections.push(...ss.selections); } }); return selections; }
- The