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

    Jonathan

    06/15/2018, 6:35 PM
    Is there any significant security advantage in using a 3rd party authenticator like auth0 verses the normal baked in GraphCool email/password login?
    l
    • 2
    • 2
  • s

    Sam Hulick

    06/15/2018, 7:24 PM
    hey all, we're using Prisma + Zeit, and are wondering how to deploy to different environments (dev/staging/prod)
  • s

    Sam Hulick

    06/15/2018, 7:44 PM
    nvm, I think we got it.
    .env.dev
    and
    .env.prod
    with different
    PRISMA_ENDPOINT
    values (and secrets). just changing the endpoint suffix from
    /dev
    to
    /prod
    seemed to work. and then
    prisma deploy -e .env.prod
    works as expected, and
    now deploy -n ourapp-prod --dotenv .env.prod
  • s

    Sam Hulick

    06/15/2018, 7:44 PM
    someone @ me if that's wrong, or there's a better way
  • s

    Sam Hulick

    06/15/2018, 7:44 PM
    we put these in our `package.json`:
    Copy code
    "prisma-deploy-dev": "prisma deploy -e .env.dev",
        "prisma-deploy-staging": "prisma deploy -e .env.staging",
        "deploy-dev": "now -T onspot deploy -n onspot-dev --dotenv .env.dev",
        "deploy-staging": "now -T onspot deploy -n onspot-staging --dotenv .env.staging"
  • h

    hvillain

    06/15/2018, 7:59 PM
    Hey, still hanging on this one, if anyone comes by ๐Ÿ™
  • d

    Dan Ryan

    06/15/2018, 8:00 PM
    hm quick question, I just heard about prisma on one of the various podcasts, so I decided to give it a shot with my postgres instance
  • d

    Dan Ryan

    06/15/2018, 8:00 PM
    that was super cool and took about 3 seconds, then I ran into the SSL issue with running the server, so I grabbed the beta version -- also working
  • d

    Dan Ryan

    06/15/2018, 8:01 PM
    but I am prototyping on a hobby instance on heroku at the moment and prisma is consuming all of my connections
  • d

    Dan Ryan

    06/15/2018, 8:01 PM
    is there any way to cap it? I can't actually run a query because of this
  • j

    Jonathan

    06/15/2018, 8:30 PM
    I have a session module that authenticates the user with auth0 where I want to check GraphCool to see if user has been created there with the same auth0UserId and if not execute the createUser mutation. I'm used to doing all of this from within Vue/Apollo with something like:
    Copy code
    this.$apollo.mutate({
            mutation: CREATE_EXPENSE_MUTATION,
            variables: {
              description: description,
              amount: amount
            },
    What's the best way access the API from a vanilla JS file? Am I going about this the right way or should I be doing this check/mutation elsewhere?
  • p

    prolink007

    06/15/2018, 9:11 PM
    Needing some desperate help with this issue, please take a look and help me out. https://github.com/prismagraphql/prisma/issues/2636
    ๐Ÿ˜ญ 1
    t
    • 2
    • 26
  • d

    Dan Ryan

    06/15/2018, 9:29 PM
    So I mentioned above that prisma immediately consumes 20+ database connections, I didn't mention that I am already setting the environment variables in the documentation to limit the max connections
    n
    • 2
    • 5
  • d

    Dan Ryan

    06/15/2018, 9:29 PM
    they appear to be ignored
  • d

    Dan Ryan

    06/15/2018, 9:29 PM
    (I have them all set to 2 right now)
  • t

    tabsnotspaces

    06/15/2018, 11:16 PM
    Having issues with prisma connecting to an existing postgres db. https://www.prisma.io/forum/t/connected-to-an-existing-db-querying-for-data-returns-null/3776 this issue prevents me from being able to write any mutation logic at this point.
  • k

    Kevin S

    06/16/2018, 1:37 AM
    Can anyone help me with hosted graph.cool?
  • k

    Kevin S

    06/16/2018, 1:37 AM
    Copy code
    Whoops. Looks like an internal server error. Please contact us from the Console (<https://console.graph.cool>) or via email (support@graph.cool) and include your Request ID: eu-west-1:simple:cjigpogm52lsk0121tvvqe261
  • k

    Kevin S

    06/16/2018, 1:37 AM
    Getting a TON of those, and I can't figure out why.
  • k

    Kevin S

    06/16/2018, 1:37 AM
    No response (yet) from the intercom/chat on console.graph.cool...
    ๐Ÿ‘ 1
    n
    • 2
    • 1
  • g

    gopidon

    06/16/2018, 3:31 AM
    Hi , am also getting a tonne of the following errors: Error rendering Resources List:, [Error: GraphQL error: Whoops. Looks like an internal server error. Please contact us from the Console (https://console.graph.cool) or via email (support@zcourts) and include your Request ID: eu-west-1simplecjiguaewhxgw90140pq8auevh]
    ๐Ÿ‘ 1
    n
    • 2
    • 1
  • k

    Kevin S

    06/16/2018, 3:31 AM
    Glad it's not just me!
  • k

    Kevin S

    06/16/2018, 3:32 AM
    I see some messages yesterday morning indicating there were problems with the EU endpoint?
  • d

    Dan Ryan

    06/16/2018, 3:32 AM
    for me that is related to too many open connections
  • d

    Dan Ryan

    06/16/2018, 3:32 AM
    oh the hosted one, not sure
  • g

    gopidon

    06/16/2018, 3:33 AM
    Am on the managed backend
  • k

    Kevin S

    06/16/2018, 3:33 AM
    Me as well. I've attempted chat in the console, and also sent e-mails but have not heard back yet.
  • g

    gopidon

    06/16/2018, 3:35 AM
    Ok. Just shot them an email.
  • d

    DavidR

    06/16/2018, 9:46 AM
    Are there any plans to implement https://github.com/confuser/graphql-constraint-directive/blob/master/README.md in Prisma? Or does such functionality already exist?
  • p

    Pedro Jardim

    06/16/2018, 12:05 PM
    I'v get the same errors in all my resolvers: Function returned invalid status code: 400. Raw body: {\n \"code\": 400,\n \"error\": \"Script returned an error.\",\n \"details\": \"Error: Whoops. Looks like an internal server error. Please contact us from the Console (https://console.graph.cool) or via email (support@graph.cool) "
    n
    • 2
    • 1
1...585960...637Latest