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

    SearchableGuy

    03/31/2020, 6:27 PM
    oi the emotes
  • f

    Fran Dios

    03/31/2020, 6:30 PM
    Is it possible to use the new P2 client in a P1 project and just keep P1 for the migration feature? Or even start migrating some pieces of the code to P2 client but keep P1 bindings in other parts?
    n
    j
    • 3
    • 8
  • n

    Nima Shoghi

    03/31/2020, 6:59 PM
    One of the preview release notes talks about optimized nested graphql queries ("dataloader" support) -- is there any documentation on what you guys are doing and what this means?
  • k

    kyriakou

    03/31/2020, 7:48 PM
    Hey guys, I am having issues generating the updated schema from prisma.io locally.
    Copy code
    type A {
     checkedIn: [UserCheckedIn!]! // the ! outside the brackets is not getting reflected in the generated schema even though its reflected in the <http://prisma.io|prisma.io> playground. I am using prisma v1.34.10. This is quite unusual.
    }
    j
    • 2
    • 4
  • k

    kyriakou

    03/31/2020, 7:48 PM
    what would be some things to check?
  • p

    Pieter Soudan

    03/31/2020, 7:50 PM
    Hi all, I'm a big fan of GraphQL (as everybody else here probably ;)). We're about to launch a public project: an open access platform for COVID-19 symptomatic data. The idea is to motivate your friends, family an neighbours to share their reports on symptoms with you.
    👍 1
  • p

    Pieter Soudan

    03/31/2020, 7:52 PM
    For this project to work and to be valuable, it needs data. All available in an open GraphQL graph. I hope I dont cross any lines here to post the url. I hope that many of you would find it very interesting to have this kind of info available in gql
  • p

    Pieter Soudan

    03/31/2020, 7:52 PM
    https://covid19-lockdown.io/
  • p

    Pieter Soudan

    03/31/2020, 7:53 PM
    (it is a non commercial project). Hope you like it!
  • i

    Ik

    03/31/2020, 10:24 PM
    Hey guys.. I’m trying to figure out how to migrate from prisma 1 with prisma-binding to the new prisma 2. The blog post gives detailed steps on how to migrate from other setups but for upgrading from prisma-binding it just says “here are the steps:” and then ends there
    👍 3
    j
    • 2
    • 1
  • s

    stephan

    04/01/2020, 9:14 AM
    does prisma support MONGO DB ?
    r
    • 2
    • 1
  • r

    Robert Westbury

    04/01/2020, 12:08 PM
    Can somebody have a look at https://github.com/prisma/prisma-client-js/issues/620 please?
    r
    r
    • 3
    • 6
  • r

    Robert Westbury

    04/01/2020, 12:08 PM
    I've been trying to figure this out for a while.
  • p

    Panindra KR

    04/01/2020, 4:31 PM
    Hi , I am getting error in installing PRISMA ,can you help whats the issue , PS F:\prisma\demoOne> npm install @prisma/cli
    @prisma/cli@2.0.0-beta.1 preinstall F:\prisma\demoOne\node_modules\@prisma\cli
    node preinstall/index.js
    internal/fs/utils.js:230 throw err; ^ Error: ENOENT: no such file or directory, lstat 'C:\Users\vinsmart\AppData\Roaming\npm\node_modules' at Object.realpathSync (fs.js15887) at Object.794 (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js153017) at __webpack_require__ (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js1154) at Object.500 (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js130472) at __webpack_require__ (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js1154) at startup (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js1291) at module.exports.8 (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js1346) at Object.<anonymous> (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js1356) at Module._compile (internal/modules/cjs/loader.js114730) at Object.Module._extensions..js (internal/modules/cjs/loader.js116710) { errno: -4058, syscall: 'lstat', code: 'ENOENT', path: 'C:\\Users\\vinsmart\\AppData\\Roaming\\npm\\node_modules' } npm WARN demoOne@1.0.0 No description npm WARN demoOne@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @prisma/cli@2.0.0-beta.1 preinstall:
    node preinstall/index.js
    npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @prisma/cli@2.0.0-beta.1 preinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\vinsmart\AppData\Roaming\npm-cache\_logs\2020-04-01T16_24_20_406Z-debug.log PS F:\prisma\demoOne> npm install @prisma/cli
    @prisma/cli@2.0.0-beta.1 preinstall F:\prisma\demoOne\node_modules\@prisma\cli
    node preinstall/index.js
  • r

    Ranjan Purbey

    04/01/2020, 11:20 PM
    When using a sqlite database, the foreign keys do not seem to be enforced. Is there any way to run
    PRAGMA foreign_keys=1
    using
    prisma.raw
    ?
    j
    j
    • 3
    • 19
  • s

    Slackbot

    04/02/2020, 12:15 AM
    This message was deleted.
    r
    l
    • 3
    • 2
  • r

    rohit

    04/02/2020, 12:53 AM
    Hi guys! Have any of you deployed Prisma 1 server to kubernetes using this tutorial? https://www.prisma.io/tutorials/deploy-prisma-to-kubernetes-ct13 We are having issues with subscriptions to the server where the websocket connection drops almost immediately.
  • r

    Ranjan Purbey

    04/02/2020, 8:22 AM
    How do I suggest fixes for the docs? Is there some git repo?
    n
    j
    • 3
    • 4
  • r

    Rain

    04/02/2020, 9:35 AM
    I want to get a single Post that is owned by the author, I want to fetch as the following
    <http://prisma.client.post|prisma.client.post>({ id, authorId: author.id});
  • r

    Rain

    04/02/2020, 9:35 AM
    but
    post()
    only accept id as parameter
    d
    • 2
    • 8
  • r

    Robert Westbury

    04/02/2020, 10:34 AM
    Copy code
    Error occurred during query execution:
    ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(Error { kind: Db, cause: Some(DbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState("42601"), message: "syntax error at or near \")\"", detail: None, hint: None, position: Some(Original(93)), where_: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("scan.l"), line: Some(1149), routine: Some("scanner_yyerror") }) }) })
    at PrismaClientFetcher.request (/home/robert/.cache/prisma/studio/home-robert-Projects-semita/runtime/index.js:1:51485)
    at processTicksAndRejections (internal/process/task_queues.js:86:5)
    Anyone know why this is happening when I create a row in studio?
    s
    • 2
    • 15
  • r

    romain.charretteur

    04/02/2020, 2:59 PM
    Hello all, I have a performance problem between schema with TABLE relation and INLINE relation. When I do some query I find that my schema with INLINE relation is less performant that with TABLE relation. Maybe it is normal? Do you have some documentation about it or anybody have the same result ? Thank you in advance
  • s

    Seppe Snoeck

    04/02/2020, 7:06 PM
    I don’t feel secure having my database password in the PrismaClient. How can I prevent this?
    j
    • 2
    • 1
  • s

    Seppe Snoeck

    04/02/2020, 7:20 PM
    When I try to create a user with an already taken email address, it obviously fails. But when I make a new user afterwards with an unique email address it skips a userId. How’s that?
    r
    • 2
    • 1
  • t

    Taylor

    04/02/2020, 9:24 PM
    HELLO EVERYONE!! I've got a Prisma / GQL-Yoga / Apollo / Next.js app I'm trying desperately to deploy to Digital Ocean. However, I HAVE NOT GOT A CLUE HOW TO. If there is anyone out there willing to jump on the project with me and spare me a couple hours of their time, I would be forever grateful 🙂
    r
    s
    a
    • 4
    • 7
  • a

    Awey

    04/02/2020, 9:42 PM
    Does anyone know of any slack/discord groups for Postgres/SQL?
  • m

    martin

    04/03/2020, 7:39 AM
    Hey everyone, Have been trying (for many days now) to launch a GraphQL server using Prisma Client and Netlify Functions, to no avail. Posted the issue here. https://github.com/prisma/prisma/issues/2082 Any help would be greatly appreciated. Many thanks in advance. Martin
    👍 1
  • i

    iandjx

    04/03/2020, 7:42 AM
    I get this error 
    Error: Cannot return null for non-nullable field Post.id.
    when running this resolver
    Copy code
    t.field('posts', {
          type: 'Post',
          resolve: (parent, args, ctx) => ctx.prisma.post.findMany(),
        })
    but switching to`findOne()`  allows me to run the resolver without any problems github link
    r
    • 2
    • 13
  • t

    Tristan

    04/03/2020, 11:02 AM
    Im following the docs for Prisma2 using TypeScript. Im up to the step where I start the server. Docs say
    node index.js
    . Thats obviously a typo so I changed it to
    node index.ts
    . Im getting the following error. I am a front end dev just starting to play on the backend so Im used to the import syntax and would rather stick with that than switch back to using
    require
    . Anyone have advice for how I should solve this?
    Copy code
    import { PrismaClient } from '@prisma/client';
           ^
    
    SyntaxError: Unexpected token {
        at Module._compile (internal/modules/cjs/loader.js:872:18)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
        at Module.load (internal/modules/cjs/loader.js:790:32)
        at Function.Module._load (internal/modules/cjs/loader.js:703:12)
        at Function.Module.runMain (internal/modules/cjs/loader.js:999:10)
        at internal/main/run_main_module.js:17:11
    r
    • 2
    • 3
  • i

    iandjx

    04/03/2020, 1:04 PM
    Let’s say I have a
    Project
    type that has
    Members[]
    . How do I console.log the value of
    Members[]
    using nexus? Right now I can only access these values through the playground.
    r
    • 2
    • 5
1...359360361...637Latest