Add system collections to GraphQL schema (wip) (#3872)

This commit is contained in:
Joseph Geis
2021-02-08 09:21:50 -08:00
committed by GitHub
parent 3a57335457
commit 42f0f01b13

View File

@@ -255,6 +255,14 @@ export class GraphQLService {
},
};
if (Object.keys(schemaWithLists).length > 0) {
for (const key of Object.keys(schemaWithLists)) {
if (key !== 'items') {
queryBase.fields[key] = schemaWithLists[key];
}
}
}
if (Object.keys(schemaWithLists.items).length > 0) {
queryBase.fields.items = {
type: new GraphQLObjectType({