mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 17:41:43 -05:00
Show warning when collections have no GraphQL-enabled fields
This commit is contained in:
parent
994c19a98d
commit
a7081f71c1
1 changed files with 3 additions and 0 deletions
|
@ -321,6 +321,9 @@ export const GraphQLSchema = {
|
||||||
}
|
}
|
||||||
graphQLSchema = schemaFragments.join('\n\n') + `\n\n\n`;
|
graphQLSchema = schemaFragments.join('\n\n') + `\n\n\n`;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log(`// Warning: collection ${collectionName} doesn't have any GraphQL-enabled fields, so no corresponding type can be generated. Pass generateGraphQLSchema = false to createCollection() to disable this warning`)
|
||||||
}
|
}
|
||||||
|
|
||||||
return graphQLSchema;
|
return graphQLSchema;
|
||||||
|
|
Loading…
Add table
Reference in a new issue