RelayContainer: Expected prop `%s` to be supplied to `%s`, but ' + 'got `undefined`. Pass an explicit `null` if this is intentional
<p>I try to Implement some stuff with React, Relay and GraphQL, but I faced a Problem I dont understand and where i cant find a solution.</p>

<p>First I created a RootQuery and had one Component and it worked well. Now I created a Sub Component with an own fragment an i get this Error: </p>

<blockquote>
  <p>relay.js:1799 Warning: RelayContainer: Expected prop <code>room</code> to be supplied to <code>RoomList</code>, but got <code>undefined</code>. Pass an explicit <code>null</code> if this is intentional.</p>
</blockquote>

<p>In the Networkrequest I see all the requested Data.</p>

<p>Here is some code:</p>

<p>Root Query</p>

<pre><code>const RoomQuery = {
    room: (Component) =&gt; Relay.QL`
      query {
        room {
            ${Component.getFragment('room')},
        }
      }
    `
};
</code></pre>

<p>Route</p>

<pre><code>&lt;Route name="rooms" path="/rooms" component={Rooms} onEnter={requireAuth} queries={RoomQuery}/&gt;
</code></pre>

<p>Relay Container</p>

<pre><code>export default Relay.createContainer(Rooms, {
fragments: {
    room: () =&gt; Relay.QL`
    fragment on Room {
        title,
        description,
        publicKeys,
        takenKeys,
        image_filename,
        subRoomsCount,
        owner {
            fullName
        },
        ${RoomList.getFragment('room')},
    }
`,
}
});
</code></pre>

<p>Relay Sub Container</p>

<pre><code>export default Relay.createContainer(RoomList, {
fragments: {
    room: () =&gt; Relay.QL`
    fragment on Room {
        subRooms{
            title,
            description,
            publicKeys,
            takenKeys,
            image_filename,
            availableKeys,
            owner {
                fullName
            },
            subRoomsCount
        }
    }
`,
}
});
</code></pre>

<p>In my React Component I use this Sub React Component like this:</p>

<pre><code>&lt;RoomList&gt;&lt;/RoomList&gt;
</code></pre>

<p>I dont know if I understand something wrong but I thougt that Relay will load the Data and fill it in this.props, but there is only a relay Object.</p>

<p>Thanks for your help :)</p>

<p>Greetings </p>

<p>Ronny Gerndt</p>