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:
Chris
2021-03-17 23:40:11 -04:00
committed by GitHub
parent 637326d3af
commit 6313656d8a
4 changed files with 64 additions and 0 deletions

View File

@@ -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(',');