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

    Arman

    11/15/2018, 3:10 AM
    Does anyone know the syntax theme used in the code snippet of the Prisma homepage? I've been trying to hunt it down since seeing it in the ReactConf content https://www.prisma.io/
    j
    k
    • 3
    • 7
  • n

    Nick

    11/15/2018, 9:35 AM
    How to use the new graphqlgen with the prisma cloud. Is there an example boilerplate available I tried bootstrapping a project with
    npm init graphqlgen my-app
    . There is no database in that more like dealing with inmemory stuff(arrays). I want to be able save stuff to the database on that note github.com/prisma/prisma-examples/tree/master/typescript-graphql-schema-delegation The newer examples are all based on setting up a docker environment. I maybe the only preferring using the demo server the prisma cloud because of the ease of use. I which one example came with such setup similar to the old github.com/graphql-boilerplates that even generated and endpoint as soon downloaded home the boilerplate project
    • 1
    • 1
  • d

    Dennis

    11/15/2018, 9:52 AM
    Hi, I'm new to prisma / gql and have a question. I want to try this new things in a webapp. I want to query the API for some informations, etc, handle user registrations and so on. Do I need an additional layer between prisma and the app for e.g. user registrations? Something like Rails/Laravel? Or is this possible with prisma? Thanks in advance 😊
    n
    r
    • 3
    • 7
  • s

    Slackbot

    11/15/2018, 10:31 AM
    This message was deleted.
    n
    t
    • 3
    • 14
  • a

    afgh

    11/15/2018, 12:41 PM
    Has anyone managed to use import statements like
    # import Post from "Post.graphql"
    in a Prisma datamodel .graphql file?
    • 1
    • 1
  • r

    Ramin B

    11/15/2018, 2:51 PM
    Can someone please explain the different “secrets” that can be set within a Prisma setup. I usually see 2 different ones in docs and examples:
    PRISMA_MANAGEMENT_API_SECRET
    and also a
    APP_SECRET
    . Which one should be for which context. I’ve read the docs here (https://www.prisma.io/docs/run-prisma-server/authentication-and-security-kke4/), and think I understand the
    PRISMA_MANAGEMENT_API_SECRET
    bit, which locks down access to the Management API. is
    APP_SECRET
    then used to lock down the public facing API exposed by your sever (ie, graphql-yoga)?
    d
    n
    h
    • 4
    • 6
  • t

    tsdexter

    11/15/2018, 3:05 PM
    Any luck (or tutorial) for pushing the prisma server and/or prisma client to the new zeit now version 2?
  • b

    Bruno Prela

    11/15/2018, 5:38 PM
    Hey I was wondering if there was any way of disabling prisma playground
    👊 2
    t
    t
    f
    • 4
    • 4
  • r

    rwatts3

    11/15/2018, 6:37 PM
    Hello everyone
  • r

    rwatts3

    11/15/2018, 6:38 PM
    I'm trying to create an counter field are there any docs that show how to do this the "Prisma" way
  • r

    rwatts3

    11/15/2018, 6:38 PM
    For example I have a type of Feed, and I want to keep a running counter of how many times the feed has been played or requested. I have a field of type Int titled plays
  • r

    rwatts3

    11/15/2018, 6:38 PM
    I'd like to simply update that record and bump plays +1 each time a user plays the video
    a
    j
    • 3
    • 10
  • r

    rwatts3

    11/15/2018, 6:40 PM
    one way to do this is to get the value then just +1 that in an update but this would be two api calls just to increment an integer
  • r

    rwatts3

    11/15/2018, 6:52 PM
    Also using Prisma Client how do I return only the fields I want to use
  • r

    rwatts3

    11/15/2018, 6:52 PM
    I only want the titles of the field to be returned rather than the full object
  • c

    cb

    11/15/2018, 7:24 PM
    We have been using prisma for 7 months now and the more I use it, the less I see a need for it. Would love to discuss its use case
    j
    r
    +2
    • 5
    • 39
  • s

    skainswo

    11/15/2018, 10:35 PM
    i’d like to write tests for my graphql-yoga server that uses prisma. is there any way to use prisma with an in-memory or throwaway database for testing purposes? what’s the recommended approach to testing prisma code?
    n
    • 2
    • 2
  • r

    Robson Tenório

    11/16/2018, 1:06 AM
    @nikolasburk @Etel @schickling Hey guys. Here is my contribution to HOWTOGRAPHQL tutorials. The missing graphql-php tutorial. Can you review it? https://github.com/howtographql/howtographql/pull/830
  • s

    samba

    11/16/2018, 2:49 AM
    for anyone having a similar problem https://prisma.slack.com/archives/CA491RJH0/p1542151048032100 Solution: upgrade node version to 10.x (i was on 8.11.x)
  • f

    Furier

    11/16/2018, 11:30 AM
    Hi, I am using the GraphQL Prisma extension with VSCode, and have configured
    .graphqlconfig
    with
    graphql init
    pluss some authentication, but the intellisense is not working inside
    gql
    tags or anywhere else for that matter, can somebody help me please? 🙂
    o
    n
    • 3
    • 14
  • w

    Wincent

    11/16/2018, 11:55 AM
    hi, i think i have found a bug in GraphQL.js - who should I notify?
    c
    • 2
    • 1
  • d

    Dennis

    11/16/2018, 4:14 PM
    How do I handle Authorization with prisma/graphql-yoga? Is there an easy way / tutorial?
    c
    f
    • 3
    • 3
  • c

    cb

    11/16/2018, 4:16 PM
    An example of a query we use rawSql connection for instead of prisma client.
    Copy code
    // Get a list of controls and the most recent status
    SELECT c.*,
    FROM controls AS c
    LEFT JOIN control_status AS cs ON cs.control_id = c.control_id
    WHERE
       cs.csid = (
          SELECT MAX(updatedDate)
          FROM control_status
          WHERE control_id = c.control_id
       )
  • a

    andykay

    11/16/2018, 4:22 PM
    hey guys you used to have a page ( maybe the homepage ) where you showed the comparison of GraphQL with Prisma and WITHOUT Prisma....any link still that I can share with my team?
    s
    • 2
    • 3
  • d

    daniel_simao

    11/16/2018, 4:22 PM
    Greetings, do you guys recognise this error when deploying prisma?
  • d

    daniel_simao

    11/16/2018, 4:22 PM
    n
    • 2
    • 3
  • h

    Harshit

    11/16/2018, 4:51 PM
    It seems like the monthly graphs are broken on linux OS Info: Ubuntu 18.04 LTS Browser: Chrome Version 70.0.3538.67 (Official Build) (64-bit)
    • 1
    • 1
  • r

    Ricky

    11/16/2018, 5:02 PM
    Hi fellow Prisma users, it seems that we cannot import data with null fields into existing database. Is this correct? Thanks and have a great weekend!
    h
    • 2
    • 2
  • r

    rwatts3

    11/16/2018, 7:34 PM
    Reading the Homepage Prisma talks about using Database Microservices. However it's the only 1 of 3 different Learn more items that does not have an example. I'm trying to get an understanding of how one would implement this type of workflow https://www.prisma.io/with-db-microservices Is this related to having multiple prisma clients with different database that can talk to one another and form one endpoint or is there a different principal behind this and my understanding is not correct.
    n
    n
    • 3
    • 3
  • r

    Ramin B

    11/16/2018, 8:20 PM
    hi, can somebody who’s managed to get the Heroku server setup working please tell me what their
    PRISMA_CONFIG
    ENV var looks like? dont need the actual values, but more of the format etc
1...158159160...637Latest