Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private generateModelXConnectionType(ctx: TransformerContext, typeDef: ObjectTypeDefinitionNode | InterfaceTypeDefinitionNode): void {
const tableXConnectionName = ModelResourceIDs.ModelConnectionTypeName(typeDef.name.value)
if (this.typeExist(tableXConnectionName, ctx)) {
return
}
// Create the ModelXConnection
const connectionType = blankObject(tableXConnectionName)
ctx.addObject(connectionType)
ctx.addObjectExtension(makeModelConnectionType(typeDef.name.value))
}
private generateModelXConnectionType(ctx: TransformerContext, typeDef: ObjectTypeDefinitionNode | InterfaceTypeDefinitionNode): void {
const tableXConnectionName = ModelResourceIDs.ModelConnectionTypeName(typeDef.name.value)
if (this.typeExist(tableXConnectionName, ctx)) {
return
}
// Create the ModelXConnection
const connectionType = blankObject(tableXConnectionName)
ctx.addObject(connectionType)
ctx.addObjectExtension(makeModelConnectionType(typeDef.name.value))
}