hello, the new interactive transaction give me a t...
# orm-help
d
hello, the new interactive transaction give me a type of any
await this.prisma.$transaction(async prisma => {
also this:
Copy code
const integration: Integration = await this.prisma.$transaction(async () => {
	return this.prisma.integration.create({
		data: {
			id: getPrimaryKey(constants.PRIMARY_KEY_PREFIXES.INTEGRATION),
			descriptionCharacterLimit,
			holding,
			password: hashedPassword,
			tpcBrowserTab,
			username,
			integrationMethodId: method.id
		}
	});
});
j
@Dev__ ensure you have added
previewFeatures = ["interactiveTransactions"]
to your prisma schema
r
@Dev__ 👋 You need to do it like this as it expects an array:
Copy code
const integration: Integration = await this.prisma.$transaction(async () => {
	let data =  this.prisma.integration.create({
		data: {
			id: getPrimaryKey(constants.PRIMARY_KEY_PREFIXES.INTEGRATION),
			descriptionCharacterLimit,
			holding,
			password: hashedPassword,
			tpcBrowserTab,
			username,
			integrationMethodId: method.id
		}
	});

    return [data];
});