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

    ayungavis

    10/18/2020, 4:13 PM
    šŸ‘‹ I’m here! What’d I miss?
    šŸ‘‹ 1
  • k

    Karthik Hebbar

    10/18/2020, 7:11 PM
    hi... i'm new to prisma. can any body solveĀ  this for meĀ šŸ‘‡ $ prisma deploy (node:21992) Warning: Accessing non-existent property 'count' of module exports inside circular dependency (Use
    node --trace-warnings ...
    to show where the warning was created) (node:21992) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency (node:21992) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency (node:21992) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency (node:21992) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead. ? Set up a new Prisma server or deploy to an existing server? Demo server + MySQL database ? Choose the region of your demo server 96karthikhebbar/demo-eu1 ? Choose a name for your service hackernews ? Choose a name for your stage demo-server Written endpoint
    <https://eu1.prisma.sh/96karthikhebbar/hackernews/demo-server>
    to prisma.yml Creating stage demo-server for service hackernews ! ERROR: 96karthikhebbar~hackernews is not a valid name for a service name. It must start with a letter and may contain up to 30 letters, numbers, underscores and hyphens. { Ā Ā "data": { Ā Ā Ā Ā "addProject": null Ā Ā }, Ā Ā "errors": [ Ā Ā Ā Ā { Ā Ā Ā Ā Ā Ā "locations": [ Ā Ā Ā Ā Ā Ā Ā Ā { Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā "line": 2, Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā "column": 9 Ā Ā Ā Ā Ā Ā Ā Ā } Ā Ā Ā Ā Ā Ā ], Ā Ā Ā Ā Ā Ā "path": [ Ā Ā Ā Ā Ā Ā Ā Ā "addProject" Ā Ā Ā Ā Ā Ā ], Ā Ā Ā Ā Ā Ā "code": 4001, Ā Ā Ā Ā Ā Ā "message": "96karthikhebbar~hackernews is not a valid name for a service name. It must start with a letter and may contain up to 30 letters, numbers, underscores and hyphens.", Ā Ā Ā Ā Ā Ā "requestId": "eu1:ckgfgum2e4k4x095075w21xga" Ā Ā Ā Ā } Ā Ā ], Ā Ā "status": 200 }
    r
    • 2
    • 2
  • p

    pzaenger

    10/19/2020, 12:52 AM
    Hey guys, pretty new here and to the whole GraphQL thing as well šŸ™‚ Currently I am doing some studies to evaluate GraphQL (with Prisma) vs. an existing REST API (inclusive Swagger, TypeORM as our ORM) to see if it is worth it to replace parts of the REST API. Therefore I am thinking about some key features to compare both. My thoughts so far (no specific order): 1.) Data quantity (like over-/underfetching); 2.) Ecosystem and tools for developer; 3.) Documentation of the API itself (Introspection vs. Swagger); 4.) Community; 5.) Learning curve, complexity; 6.) Testability. 7.) One endpoint vs. many endpoints; 8.) Performance (not sure how to test this, since it is more about the implementation of my resolvers I guess). So, that's all so far. Do you have any ideas, hints or suggestions? Appreciate any answer šŸ™‚
    r
    • 2
    • 5
  • n

    Natalia

    10/19/2020, 1:05 PM
    šŸ™Œ Join us this Thursday, October the 22nd, at 6PM CEST, for TypeScript Berlin Meetup #4. Here’s the lineup: ā—® Ethan Arrowood - Advanced TypeScript Definition Patterns with Fastify ā—® Phoomparin Mano - Ā You might not need advanced types ā—® Simon Knott - Fully-typed fullstack development using Blitz.js

    Set a reminder on Youtube hereā–¾

    .
    šŸ™Œ
    fast parrot 4
    šŸ’Æ 5
    prisma green 5
  • m

    Marvin

    10/19/2020, 3:09 PM
    Hey guys! Is there a way to get all available names of the generated models as a union type like this?
    Copy code
    type Models = 'User' | 'Post' | 'Comment'
    šŸ‘€ 1
    r
    • 2
    • 2
  • a

    apoeco

    10/19/2020, 7:38 PM
    Hello everyone! Congrats for all the work you put in to prisma, I really love the architecture! I am trying to setup prisma with netlify functions and I have run it to several (netlify) functions timeouts. The problem is that for every request handled by the serverless functions, a new prisma client is instantiated (along with the underlying http server of the prisma engine). I understand that this is totally normal (and not related with prisma), but this is an actual blocker for anyone that wants to deploy prisma in a serverless enviroment. I am wondering, what is the normal "boot" time for the prisma engine? Anyone here had any luck combining prisma with any serverless service? Thanks in advance!
    n
    • 2
    • 3
  • a

    Andrew Gold

    10/20/2020, 8:30 AM
    Hi all, I was wondering if someone would be able to help us debug an issue we are having. Occasionally when making large queries we can an errors of the following:
    Whoops. Looks like an internal server error. Search your server logs for request ID: local:ckggp3hu1707s0799v326pd31
    When we check the log, we see the following:
    Copy code
    {
      "key": "error/unhandled",
      "requestId": "local:ckggzgqyi71x90799fj7rnx4x",
      "clientId": "default$default",
      "payload": {
        "exception": "java.sql.SQLTransientConnectionException: database - Connection is not available, request timed out after 5005ms.",
        "query": "query ($where: TransactionWhereUniqueInput!) {\n  transaction(where: $where) {\n    sender {\n      id\n      isDeactivated\n    }\n  }\n}\n",
        "variables": "{\"where\":{\"id\":\"ckfmulguy26xr0799cqliqrwl\"}}",
        "code": "0",
        "stack_trace": "com.zaxxer.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:676)\\n com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:190)\\n com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:155)\\n com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:100)\\n slick.jdbc.hikaricp.HikariCPJdbcDataSource.createConnection(HikariCPJdbcDataSource.scala:14)\\n slick.jdbc.JdbcBackend$BaseSession.<init>(JdbcBackend.scala:494)\\n slick.jdbc.JdbcBackend$DatabaseDef.createSession(JdbcBackend.scala:46)\\n slick.jdbc.JdbcBackend$DatabaseDef.createSession(JdbcBackend.scala:37)\\n slick.basic.BasicBackend$DatabaseDef.acquireSession(BasicBackend.scala:250)\\n slick.basic.BasicBackend$DatabaseDef.acquireSession$(BasicBackend.scala:249)\\n slick.jdbc.JdbcBackend$DatabaseDef.acquireSession(JdbcBackend.scala:37)\\n slick.basic.BasicBackend$DatabaseDef$$anon$3.run(BasicBackend.scala:275)\\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\\n java.lang.Thread.run(Thread.java:748)",
        "message": "database - Connection is not available, request timed out after 5005ms."
      }
    }
    Our connection limit is already at 200. Any idea what we can do to fix this? Thanks!
    l
    • 2
    • 7
  • s

    Shaded Pixel

    10/20/2020, 6:00 PM
    Hello everyone, just spinning up my first prisma project, with express and graphql... any resources you want o share would be apreciated.
    j
    n
    • 3
    • 2
  • n

    Natalia

    10/21/2020, 1:03 PM
    šŸ‘‹ Ryan Chenkie will give a talk about Tightening the Full-Stack Development Loop with Nexus and Prisma at JavaScript.NYC meetup today. The event starts at 7PM EDT. That is 1AM CEST, but the event will be recorded and available for later viewing. Hoping to see you there! šŸ™‚ Meetup event: https://www.meetup.com/JS-NYC/ Zoom link: https://zoom.us/j/2103887800
    prisma green 4
    prisma cool 2
    🦜 2
  • k

    Kenneth Tan

    10/22/2020, 8:44 AM
    have a small question about prisma's go client, is it safe for scaling? am incorporating prisma's go client into my services right now (understand it is alpha right now)
    l
    • 2
    • 3
  • w

    wkinglr

    10/22/2020, 10:50 AM
    Copy code
    #version: '3'
    services:
      prisma:
        image: prismagraphql/prisma:1.34
        restart: always
        ports:
        - "4466:4466"
        environment:
          PRISMA_CONFIG: |
            port: 4466
            # uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
            # managementApiSecret: my-secret
            databases:
              default:
                connector: mysql
                host: mysql
                user: root
                password: prisma
                rawAccess: true
                port: 3306
                migrations: true
      mysql:
        image: mysql:5.7
        restart: always
        # Uncomment the next two lines to connect to your your database from outside the Docker environment, e.g. using a database GUI like Workbench
        # ports:
        # - "3306:3306"
        environment:
          MYSQL_ROOT_PASSWORD: prisma
        volumes:
          - mysql:/var/lib/mysql
    volumes:
      mysql:
    hello everyone,I tried to execute commands on the terminal but it didn't work . Who can help me to solve this problem?
    r
    • 2
    • 4
  • c

    Corjen

    10/22/2020, 1:25 PM
    Hi! Is there a performance difference in searching if a string occurs in a list versus if a boolean is true?
    r
    • 2
    • 6
  • n

    Natalia

    10/22/2020, 4:03 PM
    šŸ™ŒĀ TypeScript Berlin Meetup #4 is live now! During this Meetup you can take part in a quiz! Answer the questions prepared by our speakers and win exciting prizes - a lifetime Quirrel Pro membership (https://quirrel.dev) and Prisma swag (a tshirt, a mask and stickers). šŸŽ

    Tune in hereā–¾

    *.*Ā šŸ™Œ
    šŸ’™ 2
    🤩 2
    prisma rainbow 2
    🌟 2
  • j

    Justin Ellingwood

    10/22/2020, 4:55 PM
    We have a new article on user management and authentication with MySQL in Prisma's Data Guide. Let us know what you think! https://www.prisma.io/dataguide/mysql/authentication-and-authorization/user-management-and-authentication
    fast parrot 1
    prisma rainbow 3
    šŸ’š 2
    🦜 2
  • c

    Cam

    10/22/2020, 11:31 PM
    hello.. am hoping someone can help me. I'm learning Prisma and am trying to regenerate the prisma.graphql file. My course first suggested that we use graphql get-schema -p prisma, but that doesn't work for me? in one of the posts on the lecture it suggested using the npm module get-graph-schema. That worked fine. We've now added security so using the -h 'Authorization:Ā bearer xxxxxxx'. Again, this worked fine the first time, now it keeps telling me I have invalid token. I regenerate the token, still doesn't work. I try the same token in localhost:4466 and it's fine. I'm stumped, appreciate any help
    r
    • 2
    • 5
  • s

    Sangjin Han

    10/23/2020, 3:50 AM
    HellošŸ˜€ How to use UTC+9 luxion DateTime in prisma ?
    Copy code
    const dt = DateTime.local().toISO(); //2020-10-23T12:24:49.802+09:00
    Error parsing value: Invalid DateTime: trailing input DateTime must adhere to format: %Y-%m-%dT%H:%M:%S%.3f.
  • k

    Ken

    10/23/2020, 5:25 PM
    anybody having strange build problems today? cicd scripts of mine have stopped working with things like src/services/CartService.ts(3,10): error TS2305: Module ā€˜ā€œ../../node_modules/@prisma/clientā€ā€™ has no exported member ā€˜User’. I added a prisma generate which got things a bit further - but now at more problems - I expect this to be purely local to my environment - but just checking in
    c
    • 2
    • 2
  • z

    Zane Helton

    10/25/2020, 4:11 AM
    https://stackoverflow.com/questions/64512333/using-a-variable-hangs-build-process-when-accessed-via-import I'm potentially having an issue with
    yarn generate
    I'm stumped on this one
    r
    • 2
    • 3
  • e

    Ehsan Sarshar

    10/25/2020, 6:35 AM
    Hello every body
  • e

    Ehsan Sarshar

    10/25/2020, 6:36 AM
    I have a problem with prisma1 replica set
  • e

    Ehsan Sarshar

    10/25/2020, 6:36 AM
    would any one to help me overcome it
  • e

    Ehsan Sarshar

    10/25/2020, 6:36 AM
    here is an open issue of this https://github.com/prisma/prisma1/issues/5128
  • e

    Ehsan Sarshar

    10/25/2020, 6:37 AM
    and also stackoverflow https://stackoverflow.com/questions/64521007/no-valid-prisma-config-could-be-loaded
  • e

    Ehsan Sarshar

    10/25/2020, 7:40 AM
    Ok fixed
    šŸ‘ 1
  • r

    Ryan Geddes

    10/25/2020, 10:00 PM
    Hello! Apologies if this isn't the right place for this question. I'm working on a small school project that uses postgres and Prisma. We're trying to publish to npm and automate the prisma setup for the user and are having issues getting the install to run correctly. Would love to pick someone's brain on the best way to go about using prisma as a dependency for a library.
    r
    • 2
    • 12
  • s

    Sangjin Han

    10/26/2020, 3:50 AM
    Hello! How to fix this problem ā€œSubscription field must return Async Iterable. Received: undefined.ā€ in graphql-yoga.. ?
    a
    • 2
    • 1
  • n

    Natalia

    10/26/2020, 4:17 PM
    šŸ‘‹Ā Join us at week’s events that are featuring or organised by Prisma: • October 28, 6:00PM CESTĀ -Ā Prisma Meetup - Join with engineers from all around the globe to learn about database best practices, the Prisma inside scoop, and examples of Prisma in production -

    set a Youtube reminderā–¾

    ; • October 28, 7PM CEST -Ā Node.js Israel Meetup -Ā featuring a talk by Carmen Berndt, Software Engineer at Prisma_, Modern database tools for Node.js and TypeScript -_ RSVP on Meetup here; • October 29, 5PM CEST -Ā What’s new in Prisma (v2.10.0) -Ā A livestream by Ryan Chenkie and Nikolas Burk -

    Set a reminder on Youtubeā–¾

    . Looking forward to having you there!Ā šŸ¤—
    fast parrot 5
    prisma green 6
    prisma cool 3
  • g

    Gabriel Oliveira

    10/26/2020, 11:04 PM
    Hi all, question about prisma 1 After I edit my schema.graphql file, do I need to run prisma deploy again? If so, why is it that after I run it says the service is up to date. This is a problem that has always been haunting me and I was never able to understand this workflow correctly) (the one that is fed to graphqlYoga when creating a GraphQLServer object) GraphQLServer({ typeDefs: './src/schema.graphql' ...
    r
    • 2
    • 14
  • d

    Dave S

    10/26/2020, 11:05 PM
    Hey guys. Im new to coding and I wanted to get some opinions. What modules are you guys using to mock postgresql database for testing?
    j
    • 2
    • 2
  • g

    Gabriel Colson

    10/27/2020, 1:17 PM
    Hello! Does anyone know what is the best way to describe an undirected graph with Prisma, for example a social network where the users can be friends. Here is what I have so far but I am really unhappy with it:
    Copy code
    model User {
      id        String   @id @default(cuid())
      createdAt DateTime @default(now())
      updatedAt DateTime @updatedAt
    
      relationships1 Relationship[] @relation("UserRelationship1")
      relationships2 Relationship[] @relation("UserRelationship2")
    }
    
    model Relationship {
      id        String   @id @default(cuid())
      createdAt DateTime @default(now())
      updatedAt DateTime @updatedAt
    
      user1   User   @relation("UserRelationship1", fields: [user1Id], references: [id])
      user1Id String
      user2   User   @relation("UserRelationship2", fields: [user2Id], references: [id])
      user2Id String
    }
    r
    i
    • 3
    • 10
1...401402403...637Latest