diff --git a/src/generate.ts b/src/generate.ts index 0ddfbe5..93ac583 100644 --- a/src/generate.ts +++ b/src/generate.ts @@ -95,9 +95,6 @@ export async function generateComposables(meta: GraphQLMeta): Promise { const inputFieldsType = types.returnType.replace('[]', ''); const returnTypeIsDefaultType = defaultTypes.includes(types.returnType.toLowerCase()); - console.log('inputFieldsType', inputFieldsType); - console.log('returnTypeIsDefaultType', returnTypeIsDefaultType); - template.push( `export const use${capitalizeFirstLetter(query)}Query = (${ types.argType ? 'variables: { ' + types.argType + ' },' : '' @@ -143,8 +140,6 @@ export async function generateComposables(meta: GraphQLMeta): Promise { } } - console.log('customTypes', customTypes); - customTypes = [...new Set([].concat(...customTypes))]; // Remove type upload @@ -215,8 +210,6 @@ export async function generateFiles(options: any, logger: any, nuxt: any, resolv // Generate composable types const composables = await generateComposables(meta); - console.log('composables', composables); - addTemplate({ filename: nuxt.options.rootDir + '/src/base/index.ts', getContents: () => composables || '', diff --git a/src/runtime/classes/graphql-meta.class.ts b/src/runtime/classes/graphql-meta.class.ts index 84e4727..ea78897 100644 --- a/src/runtime/classes/graphql-meta.class.ts +++ b/src/runtime/classes/graphql-meta.class.ts @@ -376,7 +376,6 @@ export class GraphQLMeta { * Get deep type data */ protected getDeepType(type: any, prepared: Record = {}): GraphQLType { - console.log('getDeepType::type'); try { // Check if type is undefined or null if (!type) { @@ -499,16 +498,7 @@ export class GraphQLMeta { // Set enum values if (type._values) { - console.log('getDeepType::_values', type); - console.log('getDeepType::_values', typeName); graphQLType.isEnum = true; - console.log('getDeepType::type._values', type._values); - console.log('getDeepType::type._nameLookup', type._nameLookup); - for (const [key, value] of Object.entries(type._nameLookup)) { - if (!(value as any).isDeprecated) { - graphQLType.validEnums.push(key); - } - } } // Finish diff --git a/src/runtime/classes/graphql-type.class.ts b/src/runtime/classes/graphql-type.class.ts index b1b25c5..f807eb6 100644 --- a/src/runtime/classes/graphql-type.class.ts +++ b/src/runtime/classes/graphql-type.class.ts @@ -10,5 +10,4 @@ export class GraphQLType extends Standard { isItemRequired = false; isList = false; isEnum = false; - validEnums: string[] = []; }