/** * Copyright 2004-present Facebook. All Rights Reserved. * */ 'use strict'; const RelayCompatContainer = require('RelayCompatContainer'); const graphql = require('graphql'); const CompatProfilePic = () => null; module.exports = RelayCompatContainer.createContainer(CompatProfilePic, { passing: graphql` fragment CompatProfile_passing on User { ...ProfilePic_user @arguments(size: 40, scale: 1.5, title: "Photo") ...ProfilePic_user @arguments(size: $pictureSize) } `, receiving: graphql` fragment CompatProfile_receiving on User @argumentDefinitions( first: {type: "Int", defaultValue: 5} named: {type: "String", defaultValue: "john"} scale: {type: "Float", defaultValue: 1.5} noDefault: {type: "Int"} ) { friends(first: $first, named: $named, scale: $scale) { count } } `, passingWithDefault: graphql` fragment CompatProfile_passingWithDefault on User @argumentDefinitions( withDefault: {type: "Int", defaultValue: 100} noDefault: {type: "Int"} ) { ...ProfilePic_user @arguments(size: $withDefault, scale: $noDefault) } `, receivingGlobals: graphql` fragment CompatProfile_receivingGlobals on User { friends(first: $friendsCount) { count } } `, });