- Change
TypeComposer.addRelation
arguments:- move
argsMapper
toopts.args
- add
projection
toopts
(relations may require some fields, that not described in GraphQL query)
- move
- Add projectionMapper to Types. Now
relation
works without redundantly defining additional fields.- When you create relations you need query additional fields, that not in the GraphQL query. E.g. for obtaining
friendList
you also should addfriendIds
to projection. ProjectionMapper solves this problem.
- When you create relations you need query additional fields, that not in the GraphQL query. E.g. for obtaining