code: function getSourceDefinitionName(
    node: Fragment | Request | Root | SplitOperation,
  ): string {
    const derivedFrom =
      node.kind === 'Request' ||
      node.kind === 'Root' ||
      node.kind === 'SplitOperation'
        ? node.metadata?.derivedFrom
        : null;
    return typeof derivedFrom === 'string' ? derivedFrom : node.name;
  }
docs: Version for IR