sayden / relay-mongoose-example

An example Relay application
Other
58 stars 8 forks source link

few comments #3

Closed bsr203 closed 7 years ago

bsr203 commented 8 years ago

Hi Mario,

I came here to see an example of relay usage and surprised by how well you also explained the concepts. It was a great help for me and appreciate the time and effort you put in this.

few comments.

i) I was puzzled by the usage ddbb, and found out from here what it really means :-)

BBDD are Bases de Datos in this funny way in which Spanish refers to plural for acronyms (EEUU, Estados Unidos = United States). http://forum.wordreference.com/showthread.php?t=390785

ii) you explained mutationWithClientMutationId well, but there are few others which are used to ensure global ids to perform get and to define relations (connection). I am still not clear about all these, but would love to read your explanation.

import {
  connectionArgs,
  connectionDefinitions,
  connectionFromArray,
  fromGlobalId,
  globalIdField,
  mutationWithClientMutationId,
  nodeDefinitions,
} from 'graphql-relay';

iii)

In this section, I guess path is removed from the API.

class AppHomeRoute extends Relay.Route { static path = '/';

https://facebook.github.io/relay/docs/api-reference-relay-route.html#content

thanks again for your effort. bsr