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

    Stephen

    06/27/2018, 8:58 PM
    does anyone know if the prisma server dockerfile is publicly available ?
  • s

    Stephen

    06/27/2018, 8:58 PM
    <https://hub.docker.com/r/prismagraphql/prisma/>
    < this one.
    n
    • 2
    • 1
  • j

    jasonkuhrt

    06/28/2018, 3:38 AM
    I’ve been working on a GQL example for prisma schema stitching https://github.com/jasonkuhrt/gql-examples/tree/prisma-stitch/prisma-stitch#unresolved-issues but found a bit of a blocker with the lack of complete tooling for schema transforms. My current use-case was field level filtering but I couldn’t find something available to currently do that. Curious what others are doing for their transforms… ?
  • g

    Gorodov Maksim

    06/28/2018, 4:19 AM
    how can i work with 2 endpoints in one project?
  • g

    Gorodov Maksim

    06/28/2018, 4:20 AM
    I have such config for js, but i don't know how to do the same for prisma.yml https://gist.github.com/SilencerWeb/e3f60f9915057af154804c876ec6758f
  • g

    Gorodov Maksim

    06/28/2018, 4:22 AM
    what happens when i run
    yarn prisma deploy
    ? prisma deploys folder prisma or what?
  • g

    Gorodov Maksim

    06/28/2018, 4:59 AM
    I run this command to deploy prisma
    NODE_ENV=production PRISMA_PATH=prisma/prisma.production.yml prisma deploy -f
    but I get error
    /Users/appleuser/Documents/work/nodejs/karma-api/${env:PRISMA_PATH} could not be found.
    even path is correct -
    /Users/appleuser/Documents/work/nodejs/karma-api/prisma/prisma.production.yml
  • s

    sunrising

    06/28/2018, 6:50 AM
    Can the email of the account section be changed somehow?
  • a

    Arnab

    06/28/2018, 7:25 AM
    Let's say I have an existing postgres database with relations. Would it be possible for prisma to generate a
    datamodel.graphql
    file based on the existing database?
    👍 1
  • a

    Arnab

    06/28/2018, 7:25 AM
    Is that what is meant by the introspection maybe?
    n
    • 2
    • 1
  • j

    jaydenseric

    06/28/2018, 8:12 AM
    Is the vscode-graphql extension only meant to work in typescript projects? I’m not getting any code completion, etc. in a Next.js project. Just syntax highlighting.
    n
    • 2
    • 3
  • a

    Arnab

    06/28/2018, 11:27 AM
    Does prisma log the database queries that are run? I don't see any in the docker log for prisma 🙂
  • n

    Nick

    06/28/2018, 11:39 AM
    Guys sorry for asking dump question but how to deploy prisma docker to zeit now?
  • g

    Gorodov Maksim

    06/28/2018, 11:57 AM
    Could somebody help me with authentication with prisma from the server? I get token like this:
    Copy code
    const token = jwt.sign(
      {
        data: {
          service: 'karma-api@' + process.env.NODE_ENV,
        },
      },
      config.PRISMA_SECRET,
    );
    then how should I use it? somewhere here?
    Copy code
    const server = new GraphQLServer({
      typeDefs: 'src/schema.graphql',
      resolvers,
      context: req => ({
        ...req,
        prisma: new Prisma({
          typeDefs: 'src/generated/prisma.graphql',
          endpoint: config.PRISMA_ENDPOINT,
        }),
      }),
    });
    n
    • 2
    • 2
  • g

    Gorodov Maksim

    06/28/2018, 12:17 PM
    What is
    @hidden
    for here?
    Copy code
    type User {
      id: ID! @unique
      email: String! @hidden @unique
      password: String! @hidden
      nickname: String! @unique
      name: String
      createdAt: DateTime!
      updatedAt: DateTime!
    }
    n
    • 2
    • 4
  • g

    Gorodov Maksim

    06/28/2018, 12:24 PM
    I get this error when I'm trying to singup a new user from frontend:
    Error: GraphQL error: secretOrPrivateKey must have a value
    . But even I get this error - i have new user in my database and after trying to do same request with all same values i get another error:
    GraphQL error: A unique constraint would be violated on User. Details: Field name = nickname
    (because user with such values alr exists)
    • 1
    • 1
  • a

    Arnab

    06/28/2018, 12:46 PM
    What would be a good way of setting a field to non-null when one already has data? I tried mutation where
    myfield: null
    but that is obviously not valid 😮
  • g

    Gorodov Maksim

    06/28/2018, 12:48 PM
    undefined or
    ''
    ?
    a
    w
    n
    • 4
    • 20
  • c

    carstenbaumhoegger

    06/28/2018, 1:04 PM
    hey everyone! Does the Prisma mysql-connector support MySQL 8.0 at the moment? If it doesn’t, is there a roadmap, when it will be supported?
    n
    m
    • 3
    • 10
  • s

    Seppe Snoeck

    06/28/2018, 1:42 PM
    since there is no response in #graphcool-framework i'll post it here.. https://prisma.slack.com/archives/C9G0H7Y9M/p1530172096000107
  • g

    Gorodov Maksim

    06/28/2018, 2:38 PM
    how can i protect my server based on
    prisma-binding
    from frontend with something like secret key?
  • g

    Gorodov Maksim

    06/28/2018, 2:39 PM
    because now everybody can send requests to my server, but prisma server is protected with secret
  • g

    Gorodov Maksim

    06/28/2018, 2:51 PM
    How can I re-write not commented code in one request? I tried to do like in commented code, but I got error
    Field "OR" is not defined by type UserWhereUniqueInput.
    https://gist.github.com/SilencerWeb/a376b66a519c092e8bdeb8b98dede422
    j
    • 2
    • 17
  • y

    yuri

    06/28/2018, 3:29 PM
    Wow, heroku integration is super cool. Congrats, that’s really amazing! Looking forward to Now.sh integration 😍
    😍 4
    heroku 5
    🦜 3
  • j

    Jenkins

    06/28/2018, 3:30 PM
    Just one more reason for why I'll never not use Prisma now.
    👍 1
    😍 1
    prisma cool 5
  • g

    Gorodov Maksim

    06/28/2018, 3:32 PM
    wtfffffff, i messed with deploying my server to heroku for 2 days and when i finished u announce this, haha, so sad
    sadparrot 6
    🙈 2
  • l

    lawjolla

    06/28/2018, 3:37 PM
    Great job with the new deployment options! As my app reaches production (soon... I think), I want to host on Prisma Cloud to directly support Prisma -- not give my money to Heroku or Now. But it seems like Prisma is inching out of the hosting business. Is that a fair statement?
    m
    n
    • 3
    • 5
  • m

    Mark Brouch

    06/28/2018, 3:46 PM
    I’m trying to set up Heroku in a second workspace on my account. When I “Connect to a new Heroku account” I get the error:
    Copy code
    Heroku account has already been added. Please select it in the heroku account selection.
    However, my existing heroku account doesn’t appear anywhere in this workspace.
    n
    • 2
    • 2
  • g

    Gorodov Maksim

    06/28/2018, 3:55 PM
    could somebody explain me difference between hosting prisma on heroku or prisma server? is heroku like faster or what?
    h
    l
    • 3
    • 6
  • v

    veksen

    06/28/2018, 4:08 PM
    heyo, I cannot figure out how to setup my resolvers to be able to query a “count” on a specific relationship
1...676869...637Latest