/** * Copyright 2004-present Facebook. All Rights Reserved. * */ 'use strict'; const graphql = require('graphql'); /* * When unmasking fragment in the same module, you need to bind it to a * local variable with the conventional naming. */ const actor = graphql` fragment CompatUtil_actor on Actor { id name } `; module.exports = { /* * you could also export `CompatUtil_actor` for compat mode by commenting * out the next line */ // actor, viewer: graphql` fragment CompatUtil_viewer on Viewer { ...CompatUtil_actor @relay(mask: false) } `, };