BounceTribe / bouncetribe

The bounce tribe repository!
https://www.test.bouncetribe.com/
3 stars 2 forks source link

mutation Payloads #22

Open JakeIwen opened 7 years ago

JakeIwen commented 7 years ago

This seems to be common across many mutations. Why do I only get back a user ID... and their portrait? Where is this being set? Why their portrait?

Adding more fields to the mutation fatQuery (that are seemingly acceptable based on the relay image below) doesn't actually yield more information in the response. Sometimes it just gives an error (if for example i try to return 'viewer' instead of friends1user). Can you shed any light on what dictates what fatQuery can return?

fatQuery results are just data that has been modified right?

The response to a successful AddToFriends mutation looks like this: image

the mutation class: image

the Relay payload: image

@carlpeaslee

carlpeaslee commented 7 years ago

Yeah my understanding is that the FatQuery will generally only return data that has changed. I️ think one exception to this is if you set the getConfigs to ... I️ don’t remember what it is right now but it’s a relay confit setting that will force relay to give you back whatever data you specify in your fat query even if it didn’t change.