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

    cruzlutor

    09/02/2019, 4:54 PM
    Hello Guys, I'm trying Prisma and I really like it, but I have a little concern, Are the Admin and GraphQL Playground available from outside connections in production? or is there a way to disable them? I'm worried about if someone tries to navigate to
    myserverip:4466/_admin
    and have access to the data.
    h
    • 2
    • 3
  • b

    Bkc

    09/02/2019, 5:20 PM
    Currently running with prisma's US server. I'm wondering why my Admin console won't update after I update my datamodel and deploy
  • b

    Bamboozilla

    09/02/2019, 9:48 PM
    Hi, is there any way to get an initial query result when using subscription { } without waiting for an initial update / creation ?
  • r

    ryanking

    09/02/2019, 11:14 PM
    Hey gang, does anybody know of a frontend library that can generate query requests based off a
    schema.graphql
    file?
    i
    • 2
    • 2
  • a

    Andrii Muntian

    09/03/2019, 12:03 AM
    Hi All! Have a quick question. I have two projects 1. graphql-yoga + Prisma 2. apollo-server + Prisma both projects have
    schema.graphql
    file and it has the following line
    Copy code
    # import * from './generated/prisma.graphql'
    It works with the first project but for the second one it does not. As i understand Prisma provides me with
    # import...
    ability. Am i right? I think it apollo-server can't be a reason. names and paths are correct as i can see. I can't get what is going wrong. Any ideas?
    n
    • 2
    • 2
  • o

    Olaf

    09/03/2019, 12:35 AM
    Morning, I need to query the Stripe API from within my Prisma resolvers in order to return data about payments. This data is not replicated in my Prisma database. What are my options / the best way to spit out the data from two data sources (Prisma and Stripe) at the same Prisma API? I need to include a graphql schema for stripe data without creating additional tables in Prisma Admin, right?
  • a

    arsan.irianto

    09/03/2019, 5:10 AM
    Hi, how to implement Prisma without using docker?
  • i

    Igor Vuleta

    09/03/2019, 6:29 AM
    Hi is perhaps anyone of the authors of prisma online?
  • d

    Davey

    09/03/2019, 11:01 AM
    Hi folks, I've been getting to grips with Prisma over the last few months. I have a quick question if anyone can help it would be appreciated - as I don't really know what to search for to find an answer online.
    r
    • 2
    • 12
  • d

    Davey

    09/03/2019, 11:02 AM
    I have this in my data model...
  • d

    Davey

    09/03/2019, 11:02 AM
    Untitled
  • d

    Davey

    09/03/2019, 11:03 AM
    Is it possible to have a relation like in the code snippet? Or is there a work around?
  • d

    Davey

    09/03/2019, 11:07 AM
    Eg bike has an image of wheels.jpg and additionalImages of handles.jpg and gears.jpg . Can all images be referenced back to the item?
  • r

    Richard McKenna

    09/03/2019, 11:14 AM
    Hi everyone, I'm trying to run
    prisma deploy
    on my Azure DevOps pipeline. I've configured the PRISMA_MANAGEMENT_API_SECRET on the prisma docker compose and as an environment variable for where the Prisma CLI is installed. But when running
    prisma deploy
    I get this error. Does anyone know what the issue is.
    -.sh
  • m

    Morten Bo Rønsholdt

    09/03/2019, 2:00 PM
    has anyone seen this error (bottom one) when using
    prisma import
    ?
    Copy code
    $ prisma import --data migration/data
    Warning: The `prisma import` command will not be further developed in the future. Please use the native import features of your database for these workflows. 
        
    More info here:
    MySQL: <https://dev.mysql.com/doc/refman/5.7/en/mysqlimport.html>
    Postgres: <https://www.postgresql.org/docs/10/app-pgrestore.html>
    
    Validating data 918ms
    
    Uploading nodes...
    Uncaught exception, cleaning up: Error: Cannot find module 'cardinal/themes/jq'
    1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
    • 1
    • 1
  • n

    Ngr Dev

    09/03/2019, 2:54 PM
    Hi everyone 🙂 I'm using
    prisma2
    together with
    nexus-prisma
    and am wondering if there is a way to query for the length of an array field? Say my
    schema.prisma
    contains something like
    Copy code
    model Post {
      id        String   @default(cuid()) @id @unique
      comments  String[]
    Can I find out - without querying for all comments - how many comments a certain post has? Does
    nexus-prisma
    support something like that already? Does anyone know? Thanks!
  • p

    Paul Hachmang

    09/03/2019, 3:53 PM
    I’m trying to connect Prisma to an existing database but I am getting errors like:
    Copy code
    The field `id` is marked as id must have one of the following types: `ID!`,`Int!`.
    t
    • 2
    • 3
  • p

    Paul Hachmang

    09/03/2019, 3:53 PM
    Anybody got a solution/workaround?
  • s

    Shadow Smith

    09/03/2019, 7:10 PM
    What's the simplest, yet most secure, way to deploy a Prisma Server that scales?
  • d

    Dinnall

    09/04/2019, 1:45 AM
    Hi there everyone, I haven't been able to generate a new prisma.graphql for a week. When I run
    npm run deploy
    I receive a message that it's updated but I still see old code PLEASE ANY HELP IS APPRECIATED I've set up my package.json that I only need to run
    npm run deploy
    . Here is my prisma.yml set up
    Copy code
    endpoint: ${env:PRISMA_ENDPOINT}
        datamodel: datamodel.prisma
        # secret:  ${env:PRISMA_SECRET}
        hooks:
          post-deploy:
              - graphql get-schema -p prisma
    .graphqlconfig.yml
    Copy code
    projects:
          app:
            schemaPath: "src/schema.graphql"
            extensions:
              endpoints:
                default: "<http://localhost:4444>"
          prisma:
            schemaPath: "src/generated/prisma.graphql"
            extensions:
              prisma: prisma.yml
    my package.json scripts object so I can use
    npm run deploy
    in the terminal
    Copy code
    "scripts": {
            "start": "nodemon -e js,graphql -x node src/index.js",
            "dev": "nodemon -e js,graphql -x node --inspect src/index.js",
            "test": "jest",
            "deploy": "prisma deploy --env-file variables.env"
          },
    i
    • 2
    • 7
  • e

    evondev

    09/04/2019, 3:30 AM
    anyone have problem about prisma runing over 4gb and more than 200% of cpu it crash my project hix 😞
  • p

    Paul Hachmang

    09/04/2019, 8:48 AM
    I’m getting an internal error while trying to run
    prisma deploy
    , anybody got an idea what is exactly happening? (I’m trying to integrate prisma with an existing legacy database): It seems to be this issue: https://github.com/prisma/prisma/issues/3766 But as one of the last comments asks: How to actually debug this? The current error is kinda ambiguous..
  • p

    Paul Hachmang

    09/04/2019, 8:48 AM
    Untitled
  • p

    Paul Hachmang

    09/04/2019, 8:52 AM
    Especially since this PR is merged: https://github.com/prisma/prisma/pull/3971
  • p

    Paul Hachmang

    09/04/2019, 8:59 AM
    I did get errors that certain relation names were to long, but I changed those. So don’t know what is happening right now.
  • e

    evondev

    09/04/2019, 10:12 AM
    Prisma server running out of memory any one knows how to fix it ? 😞
  • e

    evondev

    09/04/2019, 1:43 PM
    prisma 1 current using jvm and the memory also as cpu always overload 100% make website down. And prisma2 is comming so long to using rust to improve performance. Any one knows how to prevent cpu overload when using prissma server
    d
    • 2
    • 4
  • i

    Isaac Weber

    09/04/2019, 3:28 PM
    I am using prisma client and I would like to import my generated prisma schema to be used in my node schema. My generator is currently set to be the javascript-client in my prisma.yml file. It seems importing will only work if you set your generator to be like so
    Copy code
    generate:
      - generator: graphql-schema
        output: ./generated/prisma.graphql
    You then will be able to put in the import statement at the top of your schema like so.
    # import UserOrderByInput from '../prisma/generated/prisma.graphql'
    however it does not work using the javascript client. Importing like so
    # import UserOrderByInput from '../prisma/generated/prisma-client/index.js'
  • i

    Isaac Weber

    09/04/2019, 3:30 PM
    How would I be able to accomplish this? Also is there any benefit of using the
    javascript-client
    generator over the
    grapqhl-schema
    generator?
  • p

    Paul Hachmang

    09/04/2019, 3:52 PM
    How can I use custom data types in my database? For example: I have BIGINT and DATE fields. I’m trying to introspect an existing database and dont want any modifications to the database if at all possible.
1...308309310...637Latest