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

    André de Albuquerque

    01/31/2020, 7:20 PM
    Hello everyone. I just started learning graphl through a course and installed prisma. However I'm getting this giant log:
  • a

    André de Albuquerque

    01/31/2020, 7:21 PM
    Is this a normal thing. In the course I'm taking its nowhere near as close as the one I'm getting. I already asked the crew in the course but nowjere near as close. This is around 2/5 of the logs in the console
  • p

    prisma-chobo

    02/01/2020, 1:15 AM
    Hello, is there any way that i can use Long type ? or like int 64? for prisma?
  • l

    Lars Ivar Igesund

    02/02/2020, 3:33 PM
    I have a collection that references several others in my prisma setup. I have generated a client using nexus-prisma for prisma 1. I am creating a custom resolver for this collection where I need to read data in the referenced data. The root when accessed in the resolver don't have the referenced data, and neither do I get them if I use await on an explicit call to the collection via prisma (according to the generated types, this is a promise that when resolved should have the referenced data). Do anyone know how I should go about doing this? Are there any examples?
    s
    • 2
    • 3
  • h

    Harish Muleva

    02/02/2020, 3:43 PM
    prisma query on non unique field, return all records even without match also. Its not filtering
  • h

    Harish Muleva

    02/02/2020, 3:43 PM
    return prisma.query.groupMembers({ userid: { connect{idargs.query} } }, info)
  • h

    Harish Muleva

    02/02/2020, 3:43 PM
    query{ groupmember(query:"ck64fpjzf0auf0784cpdflxxm"){ userid{ id lastname } } }
  • h

    Harish Muleva

    02/02/2020, 3:43 PM
    output is { "data": { "groupmember": [ { "userid": { "id": "ck64fpjwl0au80784iudze71e", "lastname": "muleva" } }, { "userid": { "id": "ck64fpjwl0au80784iudze71e", "lastname": "muleva" } }, { "userid": { "id": "ck64fpjzf0auf0784cpdflxxm", "lastname": "muleva" } } ] } }
  • s

    Suhail

    02/03/2020, 9:19 AM
    How to generate the JWT token using Prisma API? Right now, I generate it using
    prisma token
    command on the CLI. Is there a way to generate the JWT token using some REST call?
    l
    • 2
    • 1
  • s

    Suhail

    02/03/2020, 9:20 AM
    I want the browser (the client) to directly connect with GraphQL server but for that, I would need some form of authentication. Thus it will be helpful to know the API that I can use to generate JWT
  • s

    Suhail

    02/03/2020, 9:22 AM
    @Brad Slattman @Ehsan sarshar @Nesh
  • a

    Ahmed Tamer

    02/03/2020, 9:28 AM
    hello
    👋 1
  • a

    Ahmed Tamer

    02/03/2020, 9:28 AM
    ERROR: No cluster could be found for workspace '*' and cluster 'default'
  • a

    Ahmed Tamer

    02/03/2020, 9:29 AM
    i have this issue and tried all possible solutions except for one
  • a

    Ahmed Tamer

    02/03/2020, 9:29 AM
    which is API key
  • a

    Ahmed Tamer

    02/03/2020, 9:29 AM
    how do i get it ?
  • a

    Ahmed Tamer

    02/03/2020, 9:31 AM
    @Suhail found out a way ?
  • b

    Brad Slattman

    02/03/2020, 3:39 PM
    how do we use this tool in a real team environment
    r
    • 2
    • 1
  • b

    Brad Slattman

    02/03/2020, 3:39 PM
    if there are multiple devs working on the schema
  • b

    Brad Slattman

    02/03/2020, 3:39 PM
    and they all have their own local db instances
  • b

    Brad Slattman

    02/03/2020, 3:40 PM
    each instance would have different migration tables
  • b

    Brad Slattman

    02/03/2020, 3:40 PM
    i fear i may have to go back to a traditional sql file to manage the db changes across the team
  • b

    Brad Slattman

    02/03/2020, 3:41 PM
    not to mention when this is coupled with a serverless environment like zeit
  • d

    Dmytro Yevlakhov

    02/03/2020, 8:15 PM
    How to open .prisma files in WebStorm?
    l
    • 2
    • 1
  • j

    Jonty Coertzen

    02/04/2020, 11:40 AM
    Hey, does anyone know how I can do a non event based subscription? Similar to how socket.io works, where the client has a session ID and the server can send response back to that session?
  • l

    lionbrahh

    02/04/2020, 5:27 PM
    trying to use Go with Prisma 1, but i am running
    go mod
    not
    dep,
    when i generate gqlgen , it can’t read prisma-client , here is my gqlgen.yml
    Copy code
    schema:
      - schema.graphql
    exec:
      filename: generated.go
    models:
      Post:
        model: graph/prisma-client.Post
      User:
        model: graph/prisma-client.User
    resolver:
      filename: resolver.go
      type: Resolver
    autobind: []
    what i get error is
    Copy code
    merging type systems failed: unable to build object definition: unable to find type graph/prisma-client/prisma.Post exit status 3`
    does anyone here has same error ? or any of u using go with prisma ??
  • l

    lionbrahh

    02/05/2020, 8:33 AM
    prisma generate go is not support for latest gqlgen?? because for 2 days i have been trying to find out and always failed for create model in Go,
  • a

    Aske

    02/05/2020, 2:32 PM
    Hey there, we’re in 2 weeks into the process of trying out migrating our existing API to Prisma and hit a road-block and could use some help navigating the situation. We have an existing MongoDB database, thus using Prisma 1 with the intention of migrating to Prisma 2 once ready and supports MongoDB. With Prisma 1 we’ve got it working, but we’re stuck on not being able to use OR and NOT in our queries. We’ve looked for workarounds, but have been unable to find any suitable ones. Only one we found was doing multiple queries and merging the results, which eliminates the possibility of pagination and leads to poor performance. In addition, the escape hatch solution with raw queries isn’t support for MongoDB either. From the information we’ve been able to find online, the lack of support is due to a implementation shortcut done to support relation filters quicker. However due to Prisma 1 no longer being maintained or further developed, and Prisma 2 not being ready, we’re left in a bad situation with potentially no solution. If so we’d have to abandon the project all together and look for reliable alternatives. Is this really the case? Or does anyone know of any viable solutions here? Is it possible to use an older version that does support those queries since we care less about relation filtering. Appreciate any help and feedback 🙂
    d
    • 2
    • 14
  • w

    windkomo

    02/05/2020, 6:20 PM
    Using Prisma 1, where do you specify types that don’t need to be persisted to database? Such as data that exist within a 3rd party service (i.e. stripe)
  • l

    Lars-Jørgen Kristiansen

    02/06/2020, 10:30 AM
    I'm running into issues where i seem to hit the batch size limit for prisma:
    java.util.concurrent.RejectedExecutionException: Task slick.basic.BasicBackend$DatabaseDef$$anon$3@30e10989 rejected from slick.util.AsyncExecutor$$anon$1$$anon$2@549b383b[Running, pool size = 9, active threads = 9, queued tasks = 1000, completed tasks = 7803749]
    Its caused by one page in my app that will get alot of simultanious traffic from users has a bug multi-nested query that returns many records. Could i solve this by using fragments, or do I need to scale prisma horisontally?
1...344345346...637Latest