graphql.js 389 B

12345678910111213141516171819
  1. module.exports = Relay.createContainer(
  2. // ...
  3. {
  4. fragments: {
  5. nodes: ({solution_type, time_frame}) => Relay.QL`
  6. fragment on RelatedNode @relay(plural: true) {
  7. __typename
  8. ${OptimalSolutionsSection
  9. .getFragment(
  10. 'node',
  11. {solution_type, time_frame},
  12. )
  13. }
  14. }
  15. `,
  16. },
  17. },
  18. );