are the functions from sql-template-tag e.g. the j...
# orm-help
m
are the functions from sql-template-tag e.g. the join method, re-exported by Prisma?
l
may i ask how to check is it re-exported?
m
well, this doesn't work
Copy code
import { PrismaClient, join} from '@prisma/client'
nor does this
Copy code
import { join } from "sql-template-tag";
l
join?
i haven’t use join and also i don’t use sql_template-tag for prisma.
at this func just insert data to one table.
if the conception of JOiIN which is inner and outter etc then it doesn’t need that ..
m
join is a utility function provided by sql-template-tag
it allows you to use the template tag syntax to form sql queries
specifically, join allows you to join together arrays of parameters into sql syntax suitable for e.g. where IN type queries
l
as my conception of it
Copy code
export type postsCreateManyArgs = {
    data: Enumerable<postsCreateManyInput>
    skipDuplicates?: boolean
  }
then i just need to give type postsCreateManyInput[] to
Copy code
const holder:postsCreateManyInput[] = [];
then pass it to data.
isn’t it ? but i cannot import type postsCreateManyInput too
cuz i don’t want to give any[] to const holder for feeding to data
m
sorry Logan, I think we are talking about different problems. I have written up my question on SO, here. https://stackoverflow.com/questions/68418224/prisma-queryraw-with-variable-length-parameter-list
l
ohoh it’s okay but thnaks.
r
@Michael Dausmann Yes they are re-exported under the
Prisma
namespace. So:
Copy code
import { Prisma } from '@prisma/client'

Prisma.join