Go Client - Parsing of Response from server

@mrjn I had a question here.

query := `
	{
		me(_uid_:0x01) {
			name
			gender
			status
			friend {
				name
			}
		}
	}
`

Does the root(or any node with children[E.g. the node with attr=friend]) have a value or do only leaf nodes have a value?

I know that non-leaf nodes have a UID Matrix and not values directly, but in the parsed response , do they have values ? Because if they don’t have a value and only reference to Child nodes which may have a value, then the bottom up approach isn’t needed. We could pretty much use the protocol buffer struct then.

Or in the other method typically every node will have a value. For instance, the friend node would have a value that would be a slice of structs probably where each struct has a name property. In this case, the bottom-up approach would be needed.