code: function createClassicNode(
    t: $FlowFixMe,
    path: Object,
    graphqlDefinition: DefinitionNode,
    state: BabelState,
  ): Object {
    if (graphqlDefinition.kind === 'FragmentDefinition') {
      return createFragmentConcreteNode(t, path, graphqlDefinition, state);
    }
  
    if (graphqlDefinition.kind === 'OperationDefinition') {
      return createOperationConcreteNode(t, path, graphqlDefinition, state);
    }
  
    throw new Error(
      'BabelPluginRelay: Expected a fragment, mutation, query, or ' +
        'subscription, got `' +
        graphqlDefinition.kind +
        '`.',
    );
  }
docs: Relay Classic transforms to inline generated content.