fixes bug with field sanitization and JWT graphql type

This commit is contained in:
James
2020-09-11 15:12:02 -04:00
parent bd3f628d55
commit 698a9ead04
2 changed files with 2 additions and 1 deletions

View File

@@ -172,6 +172,7 @@ function registerCollections() {
type: 'number',
},
]),
formatName(`${slug}JWT`),
);
this.Query.fields[`me${singularLabel}`] = {

View File

@@ -28,7 +28,7 @@ const sanitizeFields = (fields, validRelationships) => {
if (!field.access) field.access = {};
if (!field.admin) field.admin = {};
if (field.fields) field.fields = sanitizeFields(field.fields);
if (field.fields) field.fields = sanitizeFields(field.fields, validRelationships);
if (field.blocks) {
field.blocks = field.blocks.map((block) => {