Excluding keys that have trailing "edges.node" on them (#7273)
* Excluding keys that have trailing "edges.node" on them as they will not be selectable anyway * Updated CHANGELOG and added test case * Forgot to change fit back to it
This commit is contained in:
@@ -106,6 +106,7 @@ const load = function (parseGraphQLSchema, parseClass, parseClassConfig: ?ParseG
|
||||
selectedFields
|
||||
.filter(field => field.startsWith('edges.node.'))
|
||||
.map(field => field.replace('edges.node.', ''))
|
||||
.filter(field => field.indexOf('edges.node') < 0)
|
||||
);
|
||||
const parseOrder = order && order.join(',');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user