- Added
projection
argument forTypeComposer.addField
andTypeComposer.addField
. Sometimes, when you create relations or some tricky fields, you should have a data from additional fields, that not in a query projection. E.g. for obtainingfriendList
you also should addfriendIds
to projection. Or forfullname
field you should requestfirstname
andlastname
from DB. - Again was changed
TypeComposer.addRelation
declaration. Added ability to create relations for cross imported files via an anonymous function. Also added build step for converting relations to GraphQL fields, when calling schemaBuild(). - Fix
projection
from AST method. Incorrectly worksProjectionMapper
withGraphQLList
andConnection
types. - Added flow-type
ProjectionType