我有:

ChildItem = Relay.createContainer(ChildItem , {
 fragments: {
 childItem: () => Relay.QL`
   fragment on Item
  {
    name
    color
  }`
}});

 ItemList = Relay.createContainer(ItemList, {
 fragments: {
 list: () => Relay.QL `
   fragment on Item{
     id
     ${ChildItem.getFragment('childItem')}
   }`
}});

使用React.injectNetworkLayer()我向后端服务器发送请求,我正在尝试接收GraphQL查询的结果,如下所示:

{"query":"query GraphQLObjQueryType {
    GraphQLObj_query {
    ...F1
    }
 }
   fragment F0 on GraphQLObj 
   {
     name,
     color {
         id
     },
     id
      }
     fragment F1 on GraphQLObj  {
         id,
          ...F0
     }",
"variables":{}}

GraphQLObjQueryType是GraphQLObjectType(查询),其对象GraphQLObj的名称字段为GraphQLObj_query .

是否有继电器或GraphQL的附加设置,告知如何发送响应 .