Я понял, вот пример кода, который я написал
const convertToClassicQuery = query => query.classic(RelayQL_GENERATED).node;
Вот небольшая библиотека для преобразования createContainer для приема современных запросов
import Relay from 'react-relay/classic';
const RelayQL_GENERATED = require('react-relay/classic').QL; // eslint-disable-line
const convertToClassicQuery = query => query.classic(RelayQL_GENERATED).node;
const convertFragments = fragments => _.mapValues(fragments, fragment => () => convertToClassicQuery(fragment()));
const convertFragmentProps = (fragmentProps) => {
fragmentProps.fragments = convertFragments(fragmentProps.fragments); // eslint-disable-line
return fragmentProps;
};
const createContainer = (Component, fragmentProps) => Relay.createContainer(Component, convertFragmentProps(fragmentProps));
module.exports = {
createContainer,
};