Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.reportError(
multipleRootQueriesError(
filePath,
nameDefMap.get(name),
otherNode && nameDefMap.get(otherNode.name)
)
)
boundActionCreators.queryExtractionGraphQLError({
componentPath: filePath,
})
return
}
let text = filterContextForNode(printContext.getRoot(name), printContext)
.documents()
.map(GraphQLIRPrinter.print)
.join(`\n`)
const query = {
name,
text,
originalText: nameDefMap.get(name).text,
path: filePath,
isHook: nameDefMap.get(name).isHook,
isStaticQuery: nameDefMap.get(name).isStaticQuery,
hash: nameDefMap.get(name).hash,
}
if (query.isStaticQuery) {
query.id =
`sq--` +
_.kebabCase(