#Unable to merge Prisma client with pulse extension into a service class

4 messages · Page 1 of 1 (latest)

astral impBOT
#

You chose to debug with a human. They'll tinker with your query soon. If you get curious meanwhile, hop into #ask-ai for a quick spin!

untold bridge
#

currently opted for this:

// ...

private readonly pulseClient = this.$extends(
  withPulse({ apiKey: env.PULSE_API_KEY })
)

// ...

get pulse() {
  return this.pulseClient
}

// ...

which allows me to use .stream() like this:

const stream = await this.prisma.pulse.model.stream()

ideally, it would be nice to be able to extend the Prisma client while also getting the types.

untold bridge
#

bumping

untold bridge
#

@lunar quarry - is this something you're familiar with?