prettier/tests/template/graphql.js

19 lines
389 B
JavaScript

module.exports = Relay.createContainer(
// ...
{
fragments: {
nodes: ({solution_type, time_frame}) => Relay.QL`
fragment on RelatedNode @relay(plural: true) {
__typename
${OptimalSolutionsSection
.getFragment(
'node',
{solution_type, time_frame},
)
}
}
`,
},
},
);