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

    Kervin Vasquez

    06/10/2020, 8:44 PM
    Hello! 👋 By any chance do you know how to enable this option? experimentalCRUD: true Edit: I found the setting, I'm not sure if it was renamed, but this seems to work:
    Copy code
    use(prisma({ features: { crud: true } }))
    👍 1
  • k

    Kervin Vasquez

    06/10/2020, 8:45 PM
  • d

    Danny

    06/11/2020, 3:35 AM
    I'm new to Prisma, with Prisma 2 cloud now the graphql server and the database are run by Prisma?
    j
    • 2
    • 2
  • l

    Lewis

    06/11/2020, 12:02 PM
    hi all
    👋 4
    t
    • 2
    • 1
  • o

    Omar Essayes

    06/11/2020, 1:04 PM
    can anyone help me with this error
  • o

    Omar Essayes

    06/11/2020, 1:04 PM
    Error: Field where: Couldn't find type ItemWhereInput in any of the schemas.
    r
    • 2
    • 6
  • s

    Sameer kashyap

    06/11/2020, 1:06 PM
    hello all, I'm new to
    prisma
    I was facing difficulty in using latest version of
    grapqhql
    -
    cli
    since I followed an old tutorial, what is the equivalent of
    >graphql get-schema
    command in the latest version of 4.x.x to generate the schema file that
    prisma
    exposes at the endpoint.
    r
    • 2
    • 2
  • t

    Tiago Correia

    06/11/2020, 2:59 PM
    Hey, I'm running into the following error Property 'specifiedByUrl' is missing in type
    Copy code
    export const DateTime = asNexusMethod(GraphQLDateTime, 'date');
                                                ~~~~~~~~~~~~~~~
    
          node_modules/graphql/type/definition.d.ts:298:3
            298   specifiedByUrl: Maybe<string>;
                  ~~~~~~~~~~~~~~
            'specifiedByUrl' is declared here.
  • y

    Yann Pringault

    06/11/2020, 3:18 PM
    Hello, I'm trying to count entities in a relation with Prisma 2.
    Copy code
    const users = await prisma.users.findMany({
      where: { id: session.userId },
      select: {
        id: true,
        name: true,
        posts: { count: true },
      },
    })
    Is it possible to do something like this?
    r
    • 2
    • 2
  • l

    Lewis

    06/11/2020, 5:28 PM
    I am confused about prisma 2. 1. Is that ready for production?
    n
    • 2
    • 2
  • l

    Lewis

    06/11/2020, 5:34 PM
    prisma generate ▸ Couldn’t find
    prisma.yml
    file. Are you in the right directory? Get in touch if you need help: https://slack.prisma.io To get more detailed output, run $ export DEBUG="*" (node:42834) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
    n
    • 2
    • 24
  • l

    Lewis

    06/11/2020, 5:34 PM
    I have prisma 2 for sure in my package json
  • l

    Lewis

    06/11/2020, 6:05 PM
    I wasn't aware that the whole value prop of prisma changed from prisma 1 to prisma 2
  • l

    Lewis

    06/11/2020, 6:06 PM
    so I cannot query the db with gql now? It's merely another orm?
    r
    r
    • 3
    • 4
  • n

    Nam

    06/11/2020, 11:17 PM
    Migration from Prisma 1 to Prisma 2 without Typescript Guide Hi team, we built our backend based on Prisma 1 using following stacks: + graphql-yoga + prisma-binding What is the best way for us to migrate to Prisma 2 without using Typescript as that means we have to rewrite our codebase to TS? Many thanks!
    r
    • 2
    • 5
  • r

    Robert Hall

    06/12/2020, 2:03 AM
    Anyone know what this is about:
  • r

    Robert Hall

    06/12/2020, 2:03 AM
    Copy code
    error ...node_modules/@prisma/sdk: Command failed.
    Exit signal: SIGSEGV
    Command: node scripts/download.js
    Arguments:
    j
    • 2
    • 7
  • s

    SureDroid

    06/12/2020, 2:50 AM
    Hey there everyone! Normally I use mongodb, but I recently found prisma 2, and decided I should use postgresql instead for my current project. However, I have a couple of concerns. 1. How does the schema work? Do you write a schema in prisma and does prisma create it if it doesn't exist? 2. Is it possible to have the same id for certain node objects? I'll explain more about this question in the thread.
    r
    • 2
    • 2
  • r

    Ruslan Baigunussov

    06/12/2020, 12:49 PM
    Hi everyone. Is it possible to filter entities by string field case insensitive?
    r
    • 2
    • 2
  • m

    Mike SOK

    06/12/2020, 2:58 PM
    After installing prisma 1 globally and then followed by prisma init I keep getting this error message $ prisma init bash: prisma: command not found Does anyone have a clue what is going on here? @nikolasburk
    s
    l
    • 3
    • 3
  • t

    thesunny

    06/12/2020, 9:52 PM
    Hi, is anyone aware of what best practices are for creating prisma clients with
    const prisma = new PrismaClient()
    . Should I use one instance for my entire app, one instance per web connection, or one instance per parallel call (ie. assume any Prisma calls are NOT reentrant).
    r
    • 2
    • 3
  • t

    thesunny

    06/12/2020, 9:53 PM
    I have a bug that only appears on Heroku but not on local Mac. I wonder if this is related to the fact that the calls are probably much quicker in a local environment. Unfortunately the error is "Unknown error in Prisma Client" which doesn't tell me a lot. https://github.com/prisma/prisma-client-js/issues/723
  • t

    thesunny

    06/12/2020, 10:10 PM
    Looking at some examples, looks like one instance per app.
  • w

    Warren Day

    06/13/2020, 1:05 PM
    @thesunny One instance per app would be the ideal approach. You would potentially run into memory issues with other options.
    💯 1
    👍 1
  • m

    Max

    06/14/2020, 5:13 AM
    a search feature in the docs would be great
    d
    r
    • 3
    • 3
  • c

    Chanlito

    06/14/2020, 5:42 AM
    where did the search input go?
  • o

    Omar Essayes

    06/14/2020, 12:52 PM
    hey guys am using a template for my front end and that template has some api files but its static so can anyone take a look to this files and show me what should i do to link it with an sql database I would really appreciate the help (the api is type-graphql,apollo)
  • o

    Omar Essayes

    06/14/2020, 1:19 PM
    please guys someone help me i really have to finish this project and I am a beginner
  • s

    Sameer kashyap

    06/14/2020, 4:52 PM
    @Ryan https://www.prisma.io/tutorials/bootstrap-a-graphql-server-in-typescript-ct09#next-steps this seems deprecated ,
    graphql create myapp typescirpt-boilerplate
    is not generating any files. and
    graphql-cli
    has confusing documentation, I'm not able to generate a ts-prisma boilerplate could you please help me setting it up?
    r
    • 2
    • 1
  • j

    Jonty Coertzen

    06/14/2020, 7:29 PM
    Hey everyone. Im running into a slow startup issue with prisma and apollo server. When I npm start, it takes around 15 min before the server is accessible. Has anyone else experienced this?
    j
    r
    • 3
    • 14
1...381382383...637Latest