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

    Jim

    06/22/2018, 2:03 PM
    Ive deployed my Prisma service following the Fargate tutorial. It’s worked but my service is completely open, anyone can read / write data. How do I now secure it so only my API server can interact with it?
    n
    • 2
    • 2
  • u

    user

    06/22/2018, 3:37 PM
    A file was commented on
  • e

    ericsonluciano

    06/22/2018, 11:43 PM
    anyone have a new and latest update for docker machine digital ocean? setup?
  • p

    pettanko

    06/23/2018, 12:26 AM
    How would you delete 1 specific value from a array same type relation?
    n
    • 2
    • 2
  • j

    Jim

    06/23/2018, 6:37 AM
    Has anyone deployed their Prisma service to AWS Fargate and their GraphQL Server to Zeit Now? Fargate is available in these regions: US East (N. Virginia), US East (Ohio), US West (Oregon), and EU (Ireland). Now has SFO (N. California, USA) and BRU (Brussels, Belgium). So the two servers arn’t going to be in the same datacenter. Is this going to be a big problem in terms of latency?
    a
    • 2
    • 2
  • l

    lucasbento

    06/23/2018, 9:52 AM
    Copy code
    {
      "error": {
        "message": "The provided query doesn't include any known model name. Please check for the latest subscriptions API."
      }
    }
    does anyone know how to fix this? I got it with the same structure as in https://github.com/nikolasburk/subscriptions, only happens after I do
    prisma deploy
    (locally), if I run a fresh instance (only with
    docker-compose up -d
    ) it stay subscribed
    n
    • 2
    • 13
  • n

    nick

    06/24/2018, 7:51 AM
    is anyone looking into this: https://github.com/prismagraphql/graphql-request/issues/85
    n
    • 2
    • 1
  • d

    dhruv

    06/24/2018, 12:26 PM
    Is the
    @unique
    decorator meant to be case insensitive? I'm having issues where I can create numerous records with the same value but different casing: https://github.com/prismagraphql/prisma/issues/1641#issuecomment-399752411 Seems like this shouldn't be the case given the docs here: https://www.graph.cool/docs/reference/database/data-modelling-eiroozae8u#field-constraints
    n
    • 2
    • 1
  • p

    pettanko

    06/24/2018, 1:35 PM
    Is it possible to make "name_contains" insensitive to uppercase and lowercase?
    n
    • 2
    • 2
  • n

    notrab

    06/24/2018, 3:21 PM
    Anyone else experienced
    There can be only one input field named 'boolean'.
    error?
    t
    • 2
    • 2
  • n

    notrab

    06/24/2018, 3:22 PM
    Randomly started to get this on a production app
  • b

    bpk

    06/24/2018, 8:06 PM
    whoa... Left and came back and GraphCool is now this.... holy moly. where do I pick things up?
    d
    n
    • 3
    • 5
  • b

    bpk

    06/24/2018, 8:06 PM
    is garphcool 'over'?
  • b

    bpk

    06/24/2018, 8:07 PM

    https://www.youtube.com/watch?v=YlGqN3AKOsA▾

  • c

    chasm

    06/24/2018, 11:12 PM
    I work at a bank and cannot use docker-compose to pull down images external to the bank (so no prisma, no postgres). I have an internal PostgreSQL image and have that working fine in docker, and I finally have everything else except the Prisma docker image running in Open Shift. But how to handle the Prisma docker image? Can I just create my own using the npm prisma and the config from the docker-compose file? What, exactly, does the Prisma docker do and why does it need to be in a docker image? Is that just a convenience, or am I missing something. TIA for any help!
    d
    • 2
    • 2
  • d

    Dukuo

    06/24/2018, 11:46 PM
    Any pointers on how to bundle `.graphql`files with webpack? Been trying all day to successfully use
    graphql-import-loader
    but whenever I try to build the app it just compiles all my
    .ts
    files only
    m
    g
    • 3
    • 7
  • j

    Jim

    06/25/2018, 9:28 AM
    What is the latest stable version of Prisma?
    Copy code
    $ npm outdated
    Package         Current  Wanted   Latest  Location
    dotenv            5.0.1   5.0.1    6.0.0  graphql-boilerplate
    graphql-cli      2.16.0  2.16.0   2.16.3  graphql-boilerplate
    graphql-yoga     1.13.1  1.13.1  1.14.10  graphql-boilerplate
    jsonwebtoken      8.2.1   8.2.1    8.3.0  graphql-boilerplate
    nodemon          1.17.4  1.17.4   1.17.5  graphql-boilerplate
    prisma            1.7.1   1.7.1   1.10.2  graphql-boilerplate
    n
    • 2
    • 2
  • j

    Jim

    06/25/2018, 10:28 AM
    How can I make my node server do something when a server side subscription event occurs? From the docs, is the web hook the thing that happens in response to a user node being updated?
    Copy code
    subscriptions:
      userChangedEmail:
        webhook:
          url: <http://example.org/sendSlackMessage>
          headers:
            Content-Type: application/json
            Authorization: Bearer cha2eiheiphesash3shoofo7eceexaequeebuyaequ1reishiujuu6weisao7ohc
        query: |
          subscription {
            user(where: {
              mutation_in: [UPDATED]
            }) {
              node {
                name
                email
              }
            }
          }
    https://www.prisma.io/docs/reference/server_side-subscriptions/overview-to1ahf0ob6 Rather than ping a webhook, how can I run a function on my node server?
    n
    • 2
    • 6
  • j

    Jan

    06/25/2018, 10:53 AM
    How do you specify that a field should be included in a db query even if the user didn't request the field? As far as i can tell you're supposed to use fragments but I can't figure out how to define them when using GraphQL.js to define the app schema, I've looked at fragmentReplacements but i can't really find any documentation on how to use it and the properties I've tried giving it doesn't seem to do anything apart from in some cases where the server wouldn't start, any code examples or explanations would be very appreciated 😁
    n
    • 2
    • 1
  • h

    halborg

    06/25/2018, 11:20 AM
    Has anyone gotten the GraphQL VS Code extension by
    Prisma
    to work? I’m getting
    Copy code
    ZEBRA 1: undefined undefined
    ZEBRA: GraphQLProjectConfig {
      config: 
       { schemaPath: 'schema.graphql',
         includes: [ 'schema.graphql' ],
         extensions: { endpoints: [Object] } },
      configPath: '[path to project]/.graphqlconfig.yaml',
      projectName: 'app' } [path to project]/schema.graphql
    errors in the output for the plugin. Found this issue (https://github.com/prismagraphql/vscode-graphql/issues/15) from 10 days ago, but it’s closed for some reason. Using MacOS, plugin version 0.0.8 My
    .graphqlconfig.yaml
    file:
    Copy code
    projects:
      app:
        schemaPath: schema.graphql
        includes: [
          "schema.graphql"
        ]
        extensions:
          endpoints:
            default: <http://localhost:4000/graphql>
    n
    • 2
    • 10
  • p

    Pieter

    06/25/2018, 12:21 PM
    I am using
    chromeless
    to get some pdf files generated from our html templates. Previously we used phantomJS and we are busy migrating out things over. The issue I ran into is that the whole
    <div id="pageHeader">
    functionality from (https://github.com/marcbachmann/node-html-pdf) is not available in chromeless, despite chrome having
    prontToPDF()
    options for headerTemplate. https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-printToPDF
    a
    • 2
    • 6
  • j

    Jim

    06/25/2018, 12:57 PM
    Are there any tutorials / example code for making a password recovery via email feature in Prisma?
    w
    • 2
    • 1
  • z

    zbarnes

    06/25/2018, 1:59 PM
    So has anyone had any luck modeling geojson/geometric objects with graphql and prisma? Trying work with `point`s and `polygon`s
    t
    • 2
    • 6
  • d

    Darryl

    06/25/2018, 2:46 PM
    In this documentation (https://www.prisma.io/docs/reference/upgrade-guides/graphcool-to-prisma/authentication-and-authorization-yaeco6ieth), what’s the
    getUserId
    function doing?
  • d

    Darryl

    06/25/2018, 2:46 PM
    Well, it’s clearly getting the user id but I’m asking how, in this example.
    n
    • 2
    • 2
  • l

    lewisblackwood

    06/25/2018, 5:08 PM
    Is anyone familiar with how to connect to a MySQL database on Digital Ocean with a SQL client, having followed the Prisma DO deployment guide? I'm using TablePlus, I've been able to connect to my locally running MySQL container using it. However, I can't connect to the Digital Ocean container. Would something need to change in the
    docker-compose.yml
    from the DO tutorial to be able to connect?
    n
    • 2
    • 1
  • e

    ed

    06/25/2018, 6:07 PM
    Hi guys, I have this graphql file
    Copy code
    type invitePayload {
      sent: Boolean!
    }
    
    extend type Mutation {
      invite(emails: [String!], name: String!): invitePayload
    }
    but it keeps saying invalid type
  • e

    ed

    06/25/2018, 6:07 PM
    Event I changed the emails type to a String` and still the same
  • e

    ed

    06/25/2018, 6:07 PM
    any ideas? thanks in advance
  • a

    agustif

    06/25/2018, 6:46 PM
    Hi guys, I see by the publish dates you’re currently updating the docs at full speed
1...646566...637Latest