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

    Kamek

    01/25/2019, 4:21 PM
    I'm looking at graphql-cli, I have a bunch of queries in some .gql files, I want to validate these queries against the schema
  • k

    Kamek

    01/25/2019, 4:22 PM
    is it possible to do so with the cli ?
    m
    • 2
    • 3
  • b

    benjick

    01/25/2019, 7:18 PM
    Hey, just starting out with Prisma, but I can't make sense to how I would protect my service and open an endpoint (?) to be called to login. Should I create a second service for that?
    e
    • 2
    • 3
  • a

    Anthony

    01/25/2019, 7:38 PM
    @benjick https://www.prisma.io/docs/1.4/reference/clusters/overview-eu2ood0she I was looking for this a while back too, it's the cluster secret in the yml file
  • s

    slackyslack

    01/25/2019, 7:47 PM
    how can i change postgres password ? i use docker-compose from example- but if i already started it- how can i change the password?
    e
    • 2
    • 1
  • p

    pong

    01/25/2019, 9:44 PM
    Hey guys, I am running into a very weird issue when I am deploying a staging server for my webapp. My prisma production server and db are already deployed via the online prisma website and heroku and they work just fine. I am replicating the process to create an identical copy of them for staging. The issue is the staging server contacts the production prisma db instead of the staging prisma db despite the fact I have set the endpoints correctly. Any ideas why that is the case?
    • 1
    • 1
  • a

    anton-b

    01/25/2019, 9:56 PM
    Does anyone have experience upgrading the Prisma server version running on Heroku through the Prisma app interface?
    h
    • 2
    • 1
  • r

    robotlemons

    01/26/2019, 4:55 PM
    Any idea when this might get merged? @channel https://github.com/prisma/serverless-plugin-typescript/pull/79
  • d

    dan

    01/26/2019, 10:59 PM
    Hey Guys, switching from Prisma Bindings to Prisma Client, but having some issues querying bidirectional relationships
  • d

    dan

    01/26/2019, 11:01 PM
    Copy code
    type Shop {
      id: ID! @id
      shopInvitations: [ShopInvitation!]! @relation(name: "ShopInvitations", link: INLINE)
    }
    
    type ShopInvitation {
      id: ID! @id
      shop: Shop! @relation(name: "ShopInvitations")
    }
  • d

    dan

    01/26/2019, 11:01 PM
    How would I get the shop of a shopInvitation?
  • d

    dan

    01/26/2019, 11:02 PM
    Copy code
    ShopInvitation: {
    		shop: async (parent, args, ctx, info) => {
    			const shop = await <http://ctx.db.shop|ctx.db.shop>({ where: { shopInvitations_some: { id: parent.id } } })
    			console.log(shop)
    			return shop
    		},
    	},
  • d

    dan

    01/26/2019, 11:02 PM
    BTW - Using MongoDB
  • d

    dan

    01/26/2019, 11:05 PM
    I can only seem to get it to work by using
    .shops()[0]
    rather than
    .shop()
    with this code above, before when using bindings, i wouldnt have to add each child resource implementation, it was all automatic, but shortly after found there to be a lot of missing functionality when it came to mutating data with prisma bindings.
  • s

    Steveeeie

    01/26/2019, 11:07 PM
    @dan I can't locate the original article where I read this but I believe that you can only query fields marked as
    @unique
    such as
    id: ID! @unique
    when using the singular like
    .shop
    - Sorry if I'm not describing this very well.
  • d

    dan

    01/26/2019, 11:57 PM
    @Steveeeie I have see that yes.
  • d

    dan

    01/26/2019, 11:57 PM
    How can I get the
    invitation.shopId
    ?
  • d

    dan

    01/27/2019, 12:01 AM
    Since there is no Shop ID in ShopInvitations table, i want to look this in inversely
  • d

    dan

    01/27/2019, 12:02 AM
    as shops have many invitations, "One To Many"
    link: INLINE
  • d

    dan

    01/27/2019, 12:02 AM
    Like so:
  • d

    dan

    01/27/2019, 12:02 AM
  • d

    dan

    01/27/2019, 12:02 AM
    But the documentation is completely missing how to do so
  • d

    dan

    01/27/2019, 12:03 AM
    how would you get the posts user in this case
  • r

    rein

    01/27/2019, 10:00 AM
    does anyone here have some experience with containerization/micro services/kubernetes? And would it be possible to ask some beginner questions?
    m
    • 2
    • 2
  • o

    openefit

    01/27/2019, 11:41 AM
    Hey guys, any ideas about how to create a field of type serial (auto increment)? i do need this right now eagerly. Thanks man! - new edit- i just need a work version, even it may not be safe.
    👍 1
  • m

    Max Ast

    01/27/2019, 3:23 PM
    hey everyone, I've run into this error a couple of times today
    Copy code
    FetchError: request to <https://eu1.prisma.sh/myusername/XYZ/dev> failed, reason: getaddrinfo ENOTFOUND eu1.prisma.sh eu1.prisma.sh:443
        at ClientRequest.<anonymous> (/Users/MaxAst/myapp/node_modules/node-fetch/lib/index.js:1393:11)
        at ClientRequest.emit (events.js:182:13)
        at TLSSocket.socketErrorListener (_http_client.js:399:9)
        at TLSSocket.emit (events.js:182:13)
        at emitErrorNT (internal/streams/destroy.js:82:8)
        at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
        at process.internalTickCallback (internal/process/next_tick.js:72:19)
    d
    • 2
    • 1
  • m

    Max Ast

    01/27/2019, 3:24 PM
    what is this and how can I make sure it stops happening? It happens irregularly during a filter-heavy query
    d
    • 2
    • 2
  • h

    huv1k

    01/27/2019, 5:02 PM
    Hello everyone! There is new version of
    graphql-playground
    floating around. New version introduces schema polling for better DX

    https://user-images.githubusercontent.com/16107563/51575952-243eb700-1e69-11e9-8e9d-fe5c10e9871d.gif▾

    You can check full release notes https://github.com/prisma/graphql-playground/releases/tag/v1.8.6
    💯 2
  • d

    donedgardo

    01/27/2019, 8:29 PM
    Is there a reason this guide is no longer on the website tutorials? Seems still relevant. https://www.prisma.io/docs/1.13/tutorials/deploy-prisma-servers/zeit-now-and-google-cloud-sql-mohj5eiwot/
  • r

    rawriclark

    01/27/2019, 10:12 PM
    anyone know whats the recommended latency
    e
    • 2
    • 1
1...196197198...637Latest