diff --git a/template/_templates/graphql/new/graphql.ejs b/template/_templates/graphql/new/graphql.ejs index b5796151..799b4fc2 100644 --- a/template/_templates/graphql/new/graphql.ejs +++ b/template/_templates/graphql/new/graphql.ejs @@ -27,7 +27,8 @@ export const CallPreference = enumType({ }); // Queries -schema.queryType({ +schema.extendType({ + type: 'Query', definition: (t) => { // List <%= plural %> Query (admin only) t.crud.<%= plural.toLowerCase() %>({