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

    Harshit

    10/11/2018, 3:18 PM
    I am getting this error when I use fragments in graphql yoga with prisma
    ✅ 1
    n
    • 2
    • 8
  • h

    Harshit

    10/11/2018, 3:18 PM
    Copy code
    TypeError: pchstr must be a non-empty string
    [server:dev      ]     at Object.deserialize (/home/harshitpant/code/esoplan/node_modules/@phc/format/index.js:134:11)
    [server:dev      ]     at Object.verify (/home/harshitpant/code/esoplan/node_modules/argon2/argon2.js:91:11)
    [server:dev      ]     at login (/home/harshitpant/code/esoplan/packages/server/src/resolvers/Mutation.ts:84:32)
    [server:dev      ]     at <anonymous>
    [server:dev      ]     at process._tickDomainCallback (internal/process/next_tick.js:229:7)
  • h

    Harshit

    10/11/2018, 3:19 PM
    cant understand what it mean can anyone help?
  • h

    Harshit

    10/11/2018, 3:19 PM
    using graphql-binding to connect with prisma
  • h

    Harshit

    10/11/2018, 3:19 PM
    error goes away when I remove
    info
    in the resolver but then I cant query several fields
  • h

    Harshit

    10/11/2018, 3:21 PM
    @nilan?
  • w

    Will

    10/11/2018, 3:40 PM
    Does anyone know if it's possible to use the new Prisma Client on the client side with Apollo
    w
    • 2
    • 1
  • v

    Viable

    10/11/2018, 4:24 PM
    I folks, I'm having trouble with the quickstart. Loading localhost:4466 just hangs for 10 minutes 'Waiting for localhost'
    g
    • 2
    • 1
  • j

    JSells

    10/11/2018, 9:15 PM
    Hello, I am having trouble figuring out how to disable the cache, or use network-only. Using graphql-request
    n
    • 2
    • 2
  • m

    Martin Hunt

    10/12/2018, 1:54 AM
    Hello all! I'm just getting started with graph ql and prisma and wondering if anyone can point me in the right direction to understanding security best practices with a prisma / yoga back end ? I'm so used to rest and everything feels a little foreign right now. I'm starting a big project in a little over a month and I'd love to get to a point where I'm confident enough to use a graph-ql setup!
    f
    • 2
    • 3
  • b

    boyney123

    10/12/2018, 7:44 AM
    Hey all 👋 great to be here. I have a question about
    prisma
    and getting relational data from it. I'm new to it just playing around at the moment and wondered if I'm doing something obviously wrong. I have a Team that can have multiple Users in it, I have defined my schema and my resolvers, but when I Query to get allTeams (Which should return all users and teams) I only get the team data or the user data, but never both? I will start a thread with some examples of code
  • b

    boyney123

    10/12/2018, 7:45 AM
    My_Schema.txt
  • b

    boyney123

    10/12/2018, 7:45 AM
    Resolvers___.txt
  • b

    boyney123

    10/12/2018, 7:46 AM
    I changed my
    getTeams
    resolver to look like this....
  • b

    boyney123

    10/12/2018, 7:46 AM
    -.txt
  • b

    boyney123

    10/12/2018, 7:47 AM
    but it doesn't really work.... I wanted to return all teams and creators (users) in the team
    n
    • 2
    • 3
  • a

    aroman

    10/12/2018, 3:09 PM
    I resolved one of the issues i was having. My datamodel was not updating the prisma client on prisma deploy. Essentially, I have to delete the generated folder each time I deploy. Or at least it seems like every time(maybe only major changes). Is this expected behavior?
    s
    n
    • 3
    • 7
  • v

    Vinnie

    10/12/2018, 3:41 PM
    What was the main reason for Prisma to move from prisma-binding to the generated client solution?
    l
    n
    • 3
    • 3
  • e

    emattias

    10/12/2018, 3:55 PM
    I want all field that a nullable in my mocked schema to randomly return
    null
    without having to implement a mock for all fields. Is there a way to override the default mock to randomly return
    null
    (for nullable fields). I am using
    addMockFunctionsToSchema
    and
    SchemaLink
  • j

    jackgray

    10/12/2018, 4:24 PM
    I just wanted to give a HUGE thank you to the Prisma team for the revamped getting started docs. They are amazing. Thanks for all the hard work and for putting up with so many entitled, demanding, and often rude developers commenting on github waiting for features to be added. This is definitely a gift, not something any of us are owed. You have handled the excitement and criticism with composure and grace. Excited to continue watching Prisma evolve!
    🙏 5
    ❤️ 4
    prisma dark 5
    💚 2
  • d

    doums

    10/12/2018, 4:40 PM
    Hi all, I'm trying to use real time via Subscription using Prisma Client and I'm stuck on this error :
    Copy code
    {
      "error": {
        "message": "Cannot use GraphQLSchema \"[object Object]\" from another module or realm.\n\nEnsure that there is only one instance of \"graphql\" in the node_modules\ndirectory. If different versions of \"graphql\" are the dependencies of other\nrelied on modules, use \"resolutions\" to ensure only one version is installed.\n\n<https://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate> \"graphql\" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results."
      }
    }
    It's like I have multiple instances of
    graphql
    package but I have installed only one as describe in my
    package.json
    Copy code
    "dependencies": {
        "bcryptjs": "^2.4.3",
        "graphql": "^0.13.2",
        "graphql-yoga": "^1.16.2",
        "jsonwebtoken": "^8.3.0",
        "prisma-client-lib": "^1.18.0"
      },
      "devDependencies": {
        "@babel/core": "^7.1.2",
        "@babel/node": "^7.0.0",
        "@babel/preset-env": "^7.1.0",
        "eslint": "^5.6.1",
        "standard": "^12.0.1"
      }
  • j

    jackgray

    10/12/2018, 8:16 PM
    I am having trouble updating from 1.17.0-beta.22 to 1.18. Every time I use brew or npm methods it installs 1.17 even if I use install prisma@1.18.0. I have uninstalled, deleted download caches in homebrew, and reinstalled and it still retrieves 1.17 from the aws server instead of 1.18. When I call prisma init in the cli, it notifies me of a new version: “run npm i -g prisma to update” which just reinstalls the same version-1.17.1 (from what I can tell, 1.17.0-beta22 and 1.17.1 seem to be used interchangeably which is kind of confusing).. I have broken my app in the past by updating my versions of npm or node, so i keep reverting back to 8.9.4 and 5.6.0 for npm. Is there a specific version for these I should be using? Still, it doesn’t explain the homebrew failure. Has anyone else had this issue? (Is there a specific channel I should post this issue to?)
    • 1
    • 1
  • t

    Tristan Farmer

    10/12/2018, 10:41 PM
    Attempting to walk through https://www.howtographql.com/graphql-js/4-adding-a-database/. I’ve created the yml and graphql file and when I run
    primsa deploy
    and choose demo server I get the error:
    Copy code
    FetchError: request to <https://api.cloud.prisma.sh/> failed, reason: getaddrinfo ENOTFOUND api.cloud.prisma.sh api.cloud.prisma.sh:443
    Any advice?
    • 1
    • 1
  • k

    karolis

    10/13/2018, 1:07 AM
    why do I get this error in VS code?
    Copy code
    [Error - 11:16:51 am] Server initialization failed.
      Message: Request initialize failed with message: database/prisma.yml could not be found.
      Code: -32603
    ? I have all the files I need, and when I reference i.e. ENDPOINT in prisma.yml it cant find it in .env
    Copy code
    endpoint: ${env:PRISMA_ENDPOINT}
    u
    • 2
    • 1
  • z

    zach-albia

    10/13/2018, 5:30 AM
    Hi, I was looking at the typescript-graphql-auth (https://github.com/prisma/prisma-examples/blob/master/typescript-graphql-auth example and I noticed a file
    src/generated/resolvers.ts
    https://github.com/prisma/prisma-examples/blob/master/typescript-graphql-auth/src/generated/resolvers.ts, in the
    generated
    directory. My assumption is that prisma can generate resolver typings as well and I've been scratching my head over how to get this file auto-generated using the prisma cli. Is this a correct assumption to make?
  • b

    boyney123

    10/13/2018, 9:19 AM
    Hey all 👋 So what DB are people using with Prisma? Anybody running in production? I'm working on a side project using Prisma and Postgres, although I'm not 100% sure how to handle changes when schemas change and the data is then screwed?
  • f

    Fran Dios

    10/13/2018, 11:18 AM
    @nilan @sorenbs @divyendu Are the issues labeled as
    roadmap/2018-Q3
    officially postponed to Q4 or something? Any information you can provide about it? Thanks! 🙇‍♂️ https://github.com/prisma/prisma/labels/roadmap%2F2018-Q3
    😢 1
  • j

    Joellao

    10/13/2018, 2:57 PM
    Is it possible to attach to the response a variable that isn't in the database? So I was thinking like maybe when returning User i could query for the name, username etc and after that query about an average number of Likes for example. Since can't do the aggregation with prisma was thinking doing it manually and attach that result to the response when asked
    u
    f
    j
    • 4
    • 6
  • j

    johhansantana

    10/13/2018, 5:19 PM
    does prisma has stickers for sale?
    👆 2
    ❤️ 1
    🤗 1
  • j

    jakelowen

    10/13/2018, 5:43 PM
    If I wanted to create custom views in my database (via raw SQL) is there anyway to wrap that within the prisma managed migrations? Or would I need to connect to my db independently to handle that?
1...135136137...637Latest