Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
name: query.name,
fields: {
[this.fieldName]: {
type: nestedType,
resolve: (parent, args, context, info) => {
return {}
}
}
}
})
const typeMap = schema.getTypeMap()
const allTypes = Object.keys(typeMap)
.filter(name => name !== query.name)
.map(key => typeMap[key])
return new GraphQLSchema({
query: newQuery,
types: allTypes
})
}
}