mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
Add system collections to GraphQL schema (wip) (#3872)
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user