I was trying to do a poc on Relayjs and am failing to understand the behavior it displays when I change the arguments. Here consider the following example. This is the first query that executes
query MainQuery($duration_0: Length!) {
store {
...F1
}
}
fragment F1 on Store {
_storyConnection4nVN6E: storyConnection(random: 1, duration: $duration_0, first: 1) {
// other unnecessary details
}
query variables: duration_0: "VALUE_1"
returns the result as expected but as soon as I change the value in my react component i.e. calling this.props.relay.setVariable({ //details })
then the query that relay executes is something like this.
query App_StoreRelayQL($id_0: ID!, $duration_1: Length!) {
node(id: $id_0) {
...F1
}
}
fragment F1 on Store {
_storyConnection3tNeSy: storyConnection(random: 1, duration: $duration_1, first: 1) {
// details
}
Why is this query on node
and what is it anyway?