Pass variables to fragment container in relay modern
I'm using Relay Modern (compat). I have a fragment that contains a field that has one argument, but I can't find a way of passing the variable value from the parent component: // MyFragmentComponent.jsx class MyFragmentComponent extends Component {...} const fragments = { employee: graphql` fragment MyFragmentComponent_employee on Employee { hoursWorked(includeOvertime: $includeOvertime) dob fullName id } `, } export default Relay.createFragmentContainer(MyFragmentComponent, fragments) It will end up saying $includeOvertime is not defined. The context where this component is being rendered