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

    John Cantrell

    06/07/2019, 10:45 AM
    how do we handle data migrations in prisma? If we are updating a Type's attributes and need to migrate values from old to new? I guess one option is to always add new attributes instead of changing existing ones and then manually migrate after schema is updated?
    h
    • 2
    • 1
  • i

    Ishaan

    06/07/2019, 11:25 AM
    Hello Everyone, I was facing an issue. I am using Prisma + Mongo ATLAS. While querying, I am getting an error "whoops. looks like an internal server error. search your server logs for request id: local ....". The prisma logs are as following : [INFO] Opened connection [connectionId{localValue:14, serverValue:52512}] to cluster0-shard-00-01-7tnam.mongodb.net:27017 [INFO] Opened connection [connectionId{localValue:17, serverValue:52512}] to cluster0-shard-00-01-7tnam.mongodb.net:27017 [INFO] Opened connection [connectionId{localValue:13, serverValue:52512}] to cluster0-shard-00-01-7tnam.mongodb.net:27017 [INFO] Opened connection [connectionId{localValue:18, serverValue:52512}] to cluster0-shard-00-01-7tnam.mongodb.net:27017 [INFO] Opened connection [connectionId{localValue:12, serverValue:47738}] to cluster0-shard-00-01-7tnam.mongodb.net:27017 [INFO] Closed connection [connectionId{localValue:107}] to cluster0-shard-00-01-7tnam.mongodb.net:27017 because there was a socket exception raised by this connection. com.mongodb.MongoSocketReadException: Exception receiving message at com.mongodb.internal.connection.InternalStreamConnection.translateReadException(InternalStreamConnection.java:543) at com.mongodb.internal.connection.InternalStreamConnection.access$1200(InternalStreamConnection.java:74) at com.mongodb.internal.connection.InternalStreamConnection$5.failed(InternalStreamConnection.java:500) at com.mongodb.connection.netty.NettyStream.readAsync(NettyStream.java:232) at com.mongodb.connection.netty.NettyStream.handleReadResponse(NettyStream.java:266) at com.mongodb.connection.netty.NettyStream.access$600(NettyStream.java:66) at com.mongodb.connection.netty.NettyStream$2$1.operationComplete(NettyStream.java:153) at com.mongodb.connection.netty.NettyStream$2$1.operationComplete(NettyStream.java:150) at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:507) at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:481) at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:420) at io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:104) at io.netty.channel.DefaultChannelPromise.trySuccess(DefaultChannelPromise.java:82) at io.netty.channel.AbstractChannel$CloseFuture.setClosed(AbstractChannel.java:1148) at io.netty.channel.AbstractChannel$AbstractUnsafe.doClose0(AbstractChannel.java:764) at io.netty.channel.AbstractChannel$AbstractUnsafe.close(AbstractChannel.java:740) at io.netty.channel.AbstractChannel$AbstractUnsafe.close(AbstractChannel.java:611) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.closeOnRead(AbstractNioByteChannel.java:85) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:146) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.IOException: The connection to the server was closed ... 20 more Has anyone face a similar problem? How to go about it? TIA.
    h
    • 2
    • 1
  • m

    Matt Mueller (Prisma Client PM)

    06/07/2019, 12:46 PM
    hey <!here>! we're currently working hard on the DataModel 2.0 implementation and would love to hear what you think: https://gist.github.com/matthewmueller/506147abee368f0ea028eb036b8a0a68 👉 Chat with us in #datamodel-2
    🦜 8
    💪 6
    😍 3
    😎 6
    👀 3
    🔥 6
    prisma cool 6
    prisma green 6
    💚 4
    🗄️ 4
    i
    m
    v
    • 4
    • 30
  • c

    csamu

    06/07/2019, 1:40 PM
    Hey hey. Is it possible to delete many records at once in Graphcool?
    • 1
    • 2
  • a

    AnthonyBaker

    06/07/2019, 3:40 PM
    Hey folks — this question is a Playground one, but that channel appears to be languishing a bit, so hoping someone can answer here: Is there any capability in Playground to share query URLs similar to what GraphiQL supports? Value there is that, while long, you can provide someone a link to a GraphQL endpoint with a defined query (and variables) and see it in GraphiQL. Playground is superior in all sorts of ways, but it's only now supporting curl, which isn't as portable. Thanks in advance!
    h
    • 2
    • 4
  • s

    Steven Pratt

    06/07/2019, 5:38 PM
    Hello
  • s

    Steven Pratt

    06/07/2019, 5:39 PM
    I'm pretty new to Prisma/GraphQL but I was wondering if someone could provide some insight on polymorphic relations (if that is the correct term for what I am trying to accomplish)?
  • s

    Steven Pratt

    06/07/2019, 5:43 PM
    I'd like to have multiple types all with a "posts: [Post!]!" but have Post have "postParent: PostParent!" when PostParent can be multiple types. I think I would use a Union like "union PostParent = Video | Article | Ect.." but I am not sure if that is the correct approach. Any help would be greatly appreciated.
  • s

    Steven Pratt

    06/07/2019, 5:47 PM
    It seems I could do something like "union Post = VideoPost | ArticlePost" with "type VideoPost implements Post" and "type ArticlePost implements Post" but I'd rather have just one Post type and still have a bi-directional relation with multiple possible types.
  • j

    Jacob

    06/07/2019, 6:34 PM
    Request for advice on whether to wait on `Prisma 2`: I'm starting a new project, and plan to use Prisma. I just learned that
    prisma 2
    is about to come out, and am now questioning whether I should hold off a couple of weeks before setting up the project. My questions: - Will it be easy to swap over to
    Prisma 2
    from the current version? - Is there a dev version that I could start with in the meantime to save me from needing to migrate? - What would you all advise? Thanks so much 🙏
    j
    • 2
    • 1
  • c

    Christopher Wright

    06/07/2019, 6:45 PM
    Hey all! Will Prisma 2 include support for GraphDB's?
    🙏 3
    h
    • 2
    • 2
  • a

    Alosies

    06/08/2019, 4:57 AM
    Hi, I’m trying to move my prisma deployment from Heroku to Digital Ocean. My heroku server is at version 1.11 beta. When I try to install a later prisma version like 1.34, I’m facing problem with migration. However when I install prisma1.11 in Digital Ocean as well, the migration seems to work fine. I want to know what is the latest version of Prisma server I can install that will have the same database structure as 1.11, so that I can migrate my data without problems and still take advantage of the later developments that happened after 1.11.
  • l

    Lukas

    06/08/2019, 7:08 AM
    @nikolasburk sorry for the tag, but you’re the only one from Prisma team I’ve seen in the Prisma slack. Hi, I’m Lukas, and have been leading a development team for an e-commerce service fully exploiting Prisma + GraphQL as backend. So far, I’m so grateful to Prisma team with astonishingly convenient features it provides! So, my question is if Prisma 2 server could be hosted in a fully serverless way. Now we’re delivering Prisma data layer with AWS ECS Fargate, but it’s not quite serverless. We try to manage all the resources as serverless way as possible. Thanks for your awesome efforts on Prisma again! 😄
    🙌 4
    s
    h
    +2
    • 5
    • 16
  • e

    Entrepreneur3

    06/08/2019, 12:06 PM
    Hi guys.. what might the problem be when you can deploy to dev stage but not to prod stage and get the error Invalid Signature?
  • e

    Entrepreneur3

    06/08/2019, 12:06 PM
    In my docker-compose file I have a managementApiSecret. When I export it as an env variable it works for dev stage but not for prod stage
  • e

    Entrepreneur3

    06/08/2019, 12:07 PM
    I can‘t figure out why for 5 hours now..
  • e

    Entrepreneur3

    06/08/2019, 12:07 PM
    I am sure it’s something simple I haven’t seen yet.. appreciate any help
  • p

    peterp

    06/08/2019, 1:53 PM
    o/
  • d

    divine

    06/08/2019, 2:40 PM
    hi
  • d

    divine

    06/08/2019, 2:40 PM
    https://github.com/prisma/prisma/issues/3796
  • d

    divine

    06/08/2019, 2:41 PM
    iam facing the problem mentioned in this link
  • d

    divine

    06/08/2019, 2:41 PM
    The Mongo connector currently does not support Cascading Deletes, but the field
    books
    defines cascade behaviour. Please remove the onDelete argument.
  • d

    divine

    06/08/2019, 2:42 PM
    i'm not able to cascade delete with @relation(link: INLINE , name : "BooksForUser",onDelete : CASCADE)
  • d

    divine

    06/08/2019, 2:42 PM
    how to make this work? i'm stuck at this from yesterday, and i'm not able to find any solution for this. even in prisma docs i'm not able find out the solution for this https://www.prisma.io/docs/datamodel-and-migrations/datamodel-POSTGRES-knum/
  • d

    divine

    06/08/2019, 2:43 PM
    i use prisma 1.34.0
  • d

    divine

    06/08/2019, 2:45 PM
    kindly help
  • v

    victory1908

    06/08/2019, 4:12 PM
    hi guy what is best ingress-controller should we use to deploy app on kubernetes?
  • j

    JorgeAM

    06/09/2019, 6:36 AM
    Hi again, I try to use prisma with golang I follow prisma's documentation
    gqlgen_yml.yaml
    l
    • 2
    • 2
  • a

    Athemsa

    06/09/2019, 1:29 PM
    Hi, i am a new user, i want use prisma for a project but i see prisma 2 (without docker) is coming, i want to know if prisma 1.30 will be can upgrade prisma 2, or if i need to wait prisma 2 ^^' thanks
  • j

    James

    06/09/2019, 4:12 PM
    I've got a prisma-based gql api with JS using graphql-yoga. How can I have an after hook on a mutation? Let's say I want to send an email to a user when that new user is created. Or let's say I want to rebuild my rss feed after the data changes. How do I do it in prisma land. I guess this is mostly a question about graphql-yoga
1...278279280...637Latest