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

    Aadarsha

    09/12/2020, 3:59 PM
    is there any gui app for postgres db for using with prisma? like robot3t for mongodb
  • d

    Donald Wu

    09/12/2020, 4:00 PM
    tableplus?
  • d

    Donald Wu

    09/12/2020, 4:00 PM
    @Aadarsha postico? tableplus? u mean db gui?
  • a

    Aadarsha

    09/12/2020, 4:01 PM
    yeah like we have for mongodb - robot3t and mysql workbench for mysql
  • a

    Aadarsha

    09/12/2020, 4:01 PM
    which one is more user friendly postico or tableplus?
  • a

    Aadarsha

    09/12/2020, 4:02 PM
    seems like postico is for mac only
  • d

    Donald Wu

    09/12/2020, 4:03 PM
    tableplus
  • a

    Aadarsha

    09/12/2020, 4:04 PM
    is it paid one?
  • d

    Donald Wu

    09/12/2020, 4:05 PM
    think yes
  • r

    Ridwan Sameer

    09/12/2020, 4:09 PM
    Just use PGAdmin?
  • a

    Aadarsha

    09/12/2020, 4:12 PM
    wow pgadmin is free. is it like phpmysql ?
  • r

    Ridwan Sameer

    09/12/2020, 4:14 PM
    It's similar yes, I think most similar to phpMyAdmin (I haven't used PhpMySql)
  • a

    Aadarsha

    09/12/2020, 4:19 PM
    sorry it was typo* 🙂
  • r

    Ridwan Sameer

    09/12/2020, 4:25 PM
    Oh haha, I thought it may have been a real thing! I currently use PGAdmin, but a colleague from my old work used phpMyAdmin for the same Database.
  • a

    Aadarsha

    09/12/2020, 4:34 PM
    yeah i used to do php 2-3 yrs back forgot name !
    👍 1
  • r

    Rilwan Yusuf

    09/12/2020, 6:12 PM
    Could anyone pls help me, I keep getting error on prisma1, when I hit npm run deploy
    r
    • 2
    • 4
  • r

    Ridwan Sameer

    09/12/2020, 6:39 PM
    You may want to post in the #prisma1 channel
  • m

    Marvin

    09/12/2020, 6:40 PM
    Is there a way to add and remove fields or whole models programmatically? I want to have a user interface where the user can add or remove fields of the project. My approach would be to handle that internally and add the schema to the schema.prisma file. And then execute the migration. But I'm not sure if it's the best approach for that, any ideas?
  • r

    Ridwan Sameer

    09/12/2020, 6:42 PM
    You want the user to be able to alter columns or tables in your database??
  • m

    Marvin

    09/12/2020, 6:44 PM
    The user is actually a developer. And there are only pre-defined fields where only the name could be different.
  • r

    Ridwan Sameer

    09/12/2020, 6:44 PM
    Hmm I'm not aware of an ORM that allows Dropping tables or deleting/inserting columns actually..... 🤔
  • m

    Marvin

    09/12/2020, 6:45 PM
    Do you know Strapi?
  • r

    Ridwan Sameer

    09/12/2020, 6:45 PM
    Yep
  • m

    Marvin

    09/12/2020, 6:45 PM
    In the backend you can define fields. Server gets restarted and you can query them with the API.
  • r

    Ridwan Sameer

    09/12/2020, 6:45 PM
    I think for something like this you may need to resort to raw SQL
  • m

    Marvin

    09/12/2020, 6:45 PM
    I want to achieve something similar.
  • r

    Ridwan Sameer

    09/12/2020, 6:45 PM
    I'm no expert though
  • m

    Marvin

    09/12/2020, 6:46 PM
    Yeah thought of it
  • f

    fondfolio

    09/12/2020, 11:33 PM
    Hey we are using Prisma 2, we deploy on Vercel and are trying to get Preview deploys to work on our app. We're close, but are hitting a
    PrismaClientUnknownRequestError
    on any Prisma operation for
    create
    (
    update
    and
    delete
    work). We’re on Heroku Postgres and use a staging database for these Preview deploys. We aren't sure what part of the stack is producing this error. Could it be something with the how the domain is randomly generated for these deploys and not our main domain? Everything works as expected locally. Longer error in thread
    j
    • 2
    • 5
  • c

    Chris

    09/13/2020, 12:01 AM
    Hi all - hoping for some help debugging graphql-request. Apologies if this is the wrong space for that! Here's what I'm trying to do. Environment is Firebase function running on Node 10.
    Copy code
    const request = require('graphql-request');
    const functions = require('firebase-functions');
    const admin = require('firebase-admin');
    
    admin.initializeApp(functions.config().firebase);
    
    exports.processSignUp = functions.auth.user().onCreate(async (user) => {
      const client = new request.GraphQLClient('GRAPHQL_ENDPOINT_URL', {
        headers: {
          'content-type': 'application/json',
          'x-admin-secret': 'GRAPHQL_ADMIN_SECRET',
        },
      });
      const mutation = `Mutation goes here...`;
      const data = await client.request(mutation, { Variables go here... });
      return data;
    });
    When I run this, I get the following error:
    Copy code
    ReferenceError: Headers is not defined
        at resolveHeaders (/workspace/node_modules/graphql-request/dist/index.js:74:32)
        at GraphQLClient.<anonymous> (/workspace/node_modules/graphql-request/dist/index.js:135:35)
        at step (/workspace/node_modules/graphql-request/dist/index.js:44:23)
        at Object.next (/workspace/node_modules/graphql-request/dist/index.js:25:53)
    Any help is much appreciated!
    • 1
    • 1
1...396397398...637Latest