getAll method

Set<String> getAll(
  1. FieldDefinitionNode? query
)

Implementation

Set<String> getAll(FieldDefinitionNode? query) {
  if (query == null) return {};
  final allFragments = {
    ...self(query.type.toRawType()),
    ...get(query.type.toRawType()),
    ...query.args.expand((a) => get(a.type.toRawType()))
  };
  return allFragments;
}