​Presentation​
composition of multiple resources requires multiple network requests
​https://facebook.github.io/relay/docs/fragment-container.html​
Cons:
Can't change the params
​https://facebook.github.io/relay/docs/refetch-container.html​
Cons:
First set of params/variables can't be dynamic/set
​https://facebook.github.io/relay/docs/pagination-container.html​
Cons:
Can only change the count variable, nothing else
import {fromGlobalId, toGlobalId} from 'graphql-relay';let {type, id} = fromGlobalId(globalId);let globalID = toGlobalId(type, id);
See GraphQLFieldResolveFn
https://graphql.org/graphql-js/type/#graphqlobjecttype​
resolve: async (root, args, context, info)
type GraphQLFieldResolveFn = (source?: any,args?: {[argName: string]: any},context?: any,info?: GraphQLResolveInfo) => any
Group fragments at top, for example:
fragment Example {...Fragment1...Fragment2field1field2}
High initial cost of setting up
relay-compiler babel etc
​https://www.apollographql.com/​
Supports TypeScript
Apollo
Amazon Web Services (AWS) AppSync