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

    CCBCodeMonkey

    02/28/2019, 6:13 PM
    if prisma was able to offer a "light" version which could be run in tests without mocking out, to test your schema changes worked with current code, that would be cool, like sqllite, but they don't offer that so I dunno what docs they would have with what is currently there
    h
    m
    • 3
    • 12
  • o

    Omprakash

    02/28/2019, 6:58 PM
    Prisma takes a docker first approach. Is there a code controlled approach like starting the prisma server by providing database configuration using nodejs ? Or is it in the roadmap of prisma ? Would love to see such an approach ❤️
  • s

    Steve Mason

    02/28/2019, 11:11 PM
    Does anyone have a working example using the prisma client for subscriptions with an Apollo server? All of the Apollo server docs use PubSub and I’m having a hard time getting prisma subscriptions working. Thanks!
  • s

    sapkalrohan

    03/01/2019, 6:40 AM
    any pointers for couchbase connectors would be appreciated
  • t

    Thidasa Pankaja

    03/01/2019, 6:51 AM
    Can someone help me with this ? https://stackoverflow.com/questions/54939113/how-to-use-same-generated-id-in-two-fields-prisma-graphql I need to use the generated id in another field when creating a node. Is it possible ?
    j
    • 2
    • 2
  • c

    ChiwanAhn

    03/01/2019, 7:57 AM
    .graphqlconfig.yml
    doesn’t see .env variables when execute query or mutation on vscode with graphql plugin by prisma. Is there any one who is faced this issue?
  • a

    arsan.irianto

    03/01/2019, 8:02 AM
    hi everyone, how to implement graphql server with LDAP authentication ?
    a
    • 2
    • 3
  • j

    Jorge

    03/01/2019, 9:12 AM
    is there a way to turn ssl on with a config in the docker compose yaml? (connecting to mongodb atlas)
  • m

    Matt Tennison

    03/01/2019, 9:16 AM
    Hey, I'd like to resolve this issue with a PR: https://github.com/prisma/graphql-yoga/issues/501 - any objections to me going ahead and making the change? Looks like a simple replace and rename job according to the release-notes: https://github.com/jaydenseric/graphql-upload/blob/master/changelog.md#800
    • 1
    • 1
  • a

    Aykut Alpgiray

    03/01/2019, 10:00 AM
    Hi, I can't find any information on the subject of how we can connect a Prisma server to multiple databases. When I create a new application it creates a new database schema. but I want to connect it to a new database. How should I configure such behaviour?
  • k

    k0ff33

    03/01/2019, 11:42 AM
    Hi, I’ve tried upgrading my Prisma instance from v1.25 to v.1.27 hosted on Heroku and ended up probably breaking stuff. New `prisma deploy`s result in
    ERROR: GraphQL Error (Code: 503)
    and nothing really works from the CLI. The server still works fine though. Did anyone had a similar issue?
    d
    h
    a
    • 4
    • 18
  • l

    Luca

    03/01/2019, 12:18 PM
    Hey! I am currently struggling to implement dataloader in a project where deep queries could occur, so I'm trying to circumvent the n+1 problem. I can't seem to find a method to implement dataloaders with GraphQL & Prisma in Go (github.com/vektah/dataloaden). I only have the ID from the current object:
    Copy code
    func (r *Resolver) Todo_userLoader(ctx context.Context, obj *Todo) (*User, error) {
    	return ctx.Value(userLoaderKey).(*UserLoader).Load(<http://obj.xxx|obj.xxx>) // I only have obj.ID and no obj.UserID or something similar
    }
    I can't seem to find a way to find a working solution. I could create a UserLoaderBySession and load them with session IDs:
    .(*UserLoader).Load(<http://obj.xxx|obj.xxx>)
    , but when I provide todos belonging to the same user, my internal prisma where-or-query only returns unique results and since prisma doesn't return relation ids (like obj.UserID) I can't connect them to the session IDs afterwards (because dataloader expects 5 returned results when 5 ids are provided). Any suggestions?
  • l

    Luca

    03/01/2019, 12:18 PM
    I don't really use the Typescript client but it seems it has the same problem. Or am I missing something?
  • r

    rem

    03/01/2019, 12:59 PM
    Any joy on fixing the playground from hogging CPU? I've found the cause, just no idea where to file the issue. CSS animation is causing it (I'm guessing it's animating the box-shadow which will hog the cpu):
    Copy code
    display: block;
      width: 8px;
      height: 8px;
      box-shadow: rgba(139, 149, 156, 0.4) 0px 0px 0px;
      border-radius: 50%;
      background: rgb(139, 149, 156);
      animation: cdRpRa 2s ease 0s infinite normal none running;
    h
    h
    • 3
    • 9
  • j

    Joe

    03/01/2019, 1:13 PM
    hey guys, not sure if this is a right place for this, but we just had a major prod issue with prisma, and we wanted to see if someone can help us figure out a root cause. Basically, we have 2 prod prisma servers running in Docker, both pointing to a same MySQL server in Azure, but using different data and migration databases (one prisma server for internal app, and another for external app). Today, out of the blue, both prisma containers lost connection to the server, we had restarted them, one came up, but another kept failing to obtain an exclusive agent lock (according to logs). It was very strange, if we stop one of the servers (at random), another obtains the lock just fine, but not both at the same time (which had worked previously just fine for an entire year that we had been running prisma in production). What is even stranger, after about an hour, the problem cleared out and both server can now get a lock to the same DB server as before. I guess what we are trying to figure out if pointing 2 different prisma servers to the same DB server (but not the same DB) is even a valid strategy, even though it has worked for us before, or is there a specific setting / process that we should have followed? Any info that you can provide on this issue will be highly appreciated. Thank you very much!
    h
    m
    b
    • 4
    • 16
  • r

    rem

    03/01/2019, 1:44 PM
    Is there any way to do case insensitive search/filter/where queries without adding an additional (lowercased) field (which I think I read as a workaround in prisma issues)
  • b

    Biel Simon

    03/01/2019, 2:15 PM
    Is there any way binary files such as images can be stored in prisma? Any scalar type such as File or Blob?
  • s

    Simon

    03/01/2019, 2:21 PM
    I'm a complete noob regarding react. I'm unsure how I'm supposed to create a simple react app that includes the playground. The readme in https://github.com/prisma/graphql-playground/tree/master/packages/graphql-playground-react and https://github.com/prisma/graphql-playground are not synced. I can't get the instructions of the root readme running. The other ones give me a playgound. But the css is screwed up...
    j
    • 2
    • 5
  • o

    Osicka

    03/01/2019, 3:34 PM
    hi, I followed this tutorial: https://www.prisma.io/tutorials/deploy-prisma-to-dokku-ct15 But how can I automate the prisma deploy command?
  • o

    Osicka

    03/01/2019, 3:34 PM
    Do i need to do this in the docker container?
  • n

    nikolasburk

    03/01/2019, 4:40 PM
    Hey everyone 👋 I work at Prisma and am currently writing a blog post about "Prisma and GraphQL". Since this is a very important piece for us, I am looking for some upfront feedback. If you have a few minutes and want to get a preview of the article before it gets published on the blog (and want to contribute to making it better by providing feedback 😄), please send me a DM and I'll share the article with you! 🙏
  • l

    Luca

    03/01/2019, 5:29 PM
    bump
  • g

    Gary Thung

    03/01/2019, 5:38 PM
    has anyone set up a prisma server for ad hoc queries? I have a production prisma server and production database, but want to set up a separate server and follower (read only) database to run ad hoc queries on the data. however, Prisma seems to require write permissions to hook into a database. is there a way around this or does anyone have another solution? I do not want to spin up a graphql server either and was planning on using
    prisma-binding
    h
    • 2
    • 4
  • l

    Luca

    03/01/2019, 7:01 PM
    I am interested about the decision to use Rust for the new Prisma. What made you choose Rust? I understand that Java was not perfect for this, so I definitely support the rewrite. However, I just wondered what made you choose Rust (memory management, seems more complicated in general), over something simpler like Go (super easy, minimalistic, quite efficient GC)? Was it important to have a powerful language, to eliminate a GC completely, to fully optimize for the last bit of performance, or other reasons? Just curious about this. 😄 cc @dpetrick @do4gr
    l
    h
    • 3
    • 3
  • r

    Ryan Salmons

    03/01/2019, 8:42 PM
    Hey guys - looking into evaluating Prisma. I have a use case that based on inserts and updates, I need to put a message on a queue for downstream services to consume from. I know Prisma offers functions, but is writing to a queue possible?
    h
    • 2
    • 2
  • n

    noahdavis

    03/01/2019, 9:19 PM
    Is anyone else here having issues rendering the Prisma UI?
  • r

    Ryan Salmons

    03/01/2019, 10:13 PM
    Is it possible to introspect a schema which has a foreign key restraint to a table in a diff schema?
    h
    • 2
    • 2
  • d

    Dan Ramos

    03/02/2019, 12:03 AM
    been banging my head on a wall for days, hoping someone can help me. I'm querying a legacy mysql database (not the prisma service) to get a list of users. I format the results to match my prisma schema and I have the following model defined in my graphql application
    Copy code
    export const User = prismaObjectType({
      name: "User",
      definition(t) {
        t.prismaFields(["id", "email", "first_name", "last_name", "address"]);
      }
    });
    This works fine except 'address' is returning as null. Address is a nested object type so I'm not sure how/why that's causing issues. Can anyone help?
    j
    j
    • 3
    • 21
  • j

    John Smeeth

    03/02/2019, 10:01 AM
    hi all
  • j

    John Smeeth

    03/02/2019, 10:01 AM
    i got this when follow get started tutorial with go
1...227228229...637Latest