https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# orm-help
  • a

    Adrian

    12/12/2021, 6:13 PM
    Hi, quick question. What's the convention to name JOIN tables in explicit many-to-many. I see something like CategoriesOnPosts and PostToCategories
  • o

    Omar

    12/12/2021, 9:10 PM
    Any idea why
    contains
    does not work for this case? string =
    "Incredible Soft Pizza"
    term =
    t
  • o

    Omar

    12/12/2021, 9:11 PM
    if I remove the entire
    where
    , all records are shown, although some do apply to that term
  • o

    Omar

    12/12/2021, 9:12 PM
    Am I the only one facing this?
  • o

    Omar

    12/12/2021, 9:12 PM
    It only returns results if
    t
    is the first letter
  • o

    Omar

    12/12/2021, 9:12 PM
    I tried the
    insensitive
    mode and still having the same issue
  • o

    Omar

    12/12/2021, 9:12 PM
    full text search didn't help either
  • o

    Omar

    12/12/2021, 9:16 PM
    Using PostgreSQL 13
  • o

    Omar

    12/12/2021, 9:20 PM
    some
    returns the right results(with others of course)
    every
    returns nothing
  • k

    Kelly Copley

    12/12/2021, 9:33 PM
    I'm trying to set up my app to use the prisma data proxy. I've upgraded to v3.5.0 and added the dataproxy under preview features in schema.prisma, but I'm getting an error that the datasource url must start with mysql:// Anyone have any idea what I'm doing wrong?
  • b

    Brooks

    12/12/2021, 9:34 PM
    How are you specifying the connection? Did you define a datasource url?
  • b

    Brooks

    12/12/2021, 9:36 PM
    It should probably look something like
    mysql://<username>:<password>@<ip or url of server>:<port of server if non-standard>/<database name on server>
  • k

    Kelly Copley

    12/12/2021, 9:36 PM
    datasource should be part of prisma.schema?
  • b

    Brooks

    12/12/2021, 9:37 PM
    https://www.prisma.io/docs/concepts/components/prisma-schema/data-sources
  • b

    Brooks

    12/12/2021, 9:37 PM
    I mean, you have to define the database connection somehow. How else are you doing it?
  • k

    Kelly Copley

    12/12/2021, 9:38 PM
    the url is set via ENV vars
  • k

    Kelly Copley

    12/12/2021, 9:39 PM
    OH! it looks like I have to set a new ENV var called PRISMA_CLIENT_ENGINE_TYPE with the value
    dataproxy
  • k

    Kelly Copley

    12/12/2021, 9:40 PM
    wonder if this is going to work when the generation happens on vercel though.
  • k

    Kelly Copley

    12/12/2021, 9:40 PM
    guess we will see
  • k

    Kelly Copley

    12/12/2021, 9:40 PM
    I guess it should.. It pulls in the other vars fine.
  • b

    Brooks

    12/12/2021, 9:42 PM
    Haha, just went to the Data Proxy docs and saw that step 5. Glad you solved it. Good luck with deploying
    ๐Ÿ™ 1
  • k

    Kelly Copley

    12/12/2021, 9:42 PM
    @Brooks Yes! thanks so much for your time!
    ๐Ÿ™‚ 1
  • k

    Kelly Copley

    12/12/2021, 9:51 PM
    well now that's fixed, but now I have a
    getUserbyEmail
    is not a function from next-auth ๐Ÿ˜‚
  • r

    Rykuno

    12/12/2021, 9:52 PM
    which adapter are you using
  • r

    Rykuno

    12/12/2021, 9:55 PM
    whoops, wrong one. Ensure this is updated to lastest or whichever is compatible w/ your version of prisma
    @next-auth/prisma-adapter
  • k

    Kelly Copley

    12/12/2021, 9:56 PM
    Yeah, my guess is that something needs updated now that I've upgraded
    @prisma/client
  • r

    Rykuno

    12/12/2021, 10:00 PM
    On a side note, Iโ€™m refactoring some code to use the
    referentialActions
    , and coming up w/ a weird issue I canโ€™t find in the docs of the middleware not being called upon deletion of a referenced model. I only use prisma for this project so I might have missed something. https://github.com/prisma/prisma/discussions/10655
  • b

    Brooks

    12/12/2021, 10:05 PM
    If anyone has experience with GraphQL, particularly Type-GraphQL and the typegraphql-prisma integration, please check out my question in #graphql ๐Ÿ™
  • i

    Iwamoto Yuki

    12/13/2021, 1:53 AM
    Hi
  • i

    Iwamoto Yuki

    12/13/2021, 1:53 AM
    I am Iwamoto Yuki from Canada.
1...519520521...637Latest