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

    Ehsan Sarshar

    10/08/2019, 3:46 PM
    I have a vps running prisma docker so I want to expose it to use outside of my vps
  • b

    Brendan McKenzie

    10/08/2019, 11:47 PM
    i'm not sure if i'm missing something, but is prisma basically just an ORM, so if i want to add any logic around my data model (authentication/authorisation) - i need to run another GraphQL server in front of my prisma GraphQL server, such as graphql-yoga that just proxies requests through to prisma? it feels odd having to double handle like that.
  • m

    Mike

    10/09/2019, 12:04 AM
    @Brendan McKenzie Prisma1 is not an ORM, it's more like a GraphQL query parser + ORM with live subscriptions for building reactive data layers. Prisma2 is basically just an ORM. The cool part about Prisma1 is that you can use it to build GraphQL servers with schema binding, so all your resolvers have to do is authenticate and then you can use Prisma1 to execute your queries efficiently at arbitrary size and depth. It's a super efficient way to build a powerful and fast backend. Prisma2 gets rid of the GQL query parser and the live subscriptions, and doesn't provide any migration path, which is why people say it's just an ORM. Both Prisma1 and Prisma2 also provide a declarative DB schema migration system, which is fun, but also limited.
    b
    n
    • 3
    • 12
  • c

    Chris Mugnier

    10/09/2019, 6:27 AM
    anybody interested to join a voluntary team to make an open-source project management app? backend NodeJS-Apollo Server-Prisma-MongoDB + FrontEnd Angular8-Material Design
  • c

    Chris Mugnier

    10/09/2019, 6:27 AM
    we are a team of developers in BAli - Indonesia
  • t

    Techdeviago

    10/09/2019, 8:34 AM
    Hello Everyone, I am looking for some work. I have a team of developers, We worked on so many technologies, Let me know if anyone have anything in development. Thanks
  • t

    Techdeviago

    10/09/2019, 8:35 AM
    We are a team of developers in India.
  • v

    Vince Kully

    10/09/2019, 9:30 PM
    I've been troubleshooting issues by trying out different versions of prisma in my docker-compose file... These are pretty big downloads. How do I find where all this is stored? I don't want to eat up my hard drive w/ a bunch of versions I'm not using
    b
    • 2
    • 2
  • v

    Vince Kully

    10/09/2019, 9:58 PM
    If anyone can answer my question feel free to reply. Thanks!
  • a

    Antony

    10/09/2019, 11:20 PM
    I am a newbie to graphql and prisma. So if i anyone could answer my question it would be great. I studied graphql def and resolvers. But when i check Prisma 2 i did find different functions used, so is that means Prisma2 is purely ORM based and dint use graphql? or prisma using the graphql internally?
    j
    • 2
    • 3
  • j

    James

    10/10/2019, 12:38 AM
    What are the limitations of the free tier on Prisma cloud?
  • h

    huykon225

    10/10/2019, 4:28 AM
    hi all
  • j

    James

    10/10/2019, 6:33 AM
    in the cli using
    prisma deploy
    to introspect an existing database, what does "Enter database name (the database includes the schema)" mean? so it should be something like this, "databasename.default$default" ?
  • j

    James

    10/10/2019, 6:33 AM
    assuming I'm using postgres
  • y

    Y Duong Cong

    10/10/2019, 8:31 AM
    hi all! great to join this group ^^
  • y

    Y Duong Cong

    10/10/2019, 8:33 AM
    I'm have a problem when run dev with "Couldn't find type {type name} in any of the schemas", give a keyword for research on google , please!
  • s

    Seyi

    10/10/2019, 1:48 PM
    Hi all. Nice to be here Please I’m looking for UI designs and assets i can use to practice my HTML and CSS skills. Normally see nice UI designs on the web but no assets available
  • d

    Dane Grant

    10/10/2019, 2:36 PM
    I’m curious if I started a project using Prisma 1 right now with 2 being around the corner - will there be a straight forward migration path to move a v1 project to v2?
    d
    • 2
    • 3
  • f

    Famojuro Adeniyi

    10/10/2019, 4:06 PM
    good day all, please am trying out prisma 1.34 and postgres but when i view my schemas in pgadmin i can only see two schemas even after doing prisma deploy. Please someone help me out
  • s

    Smakosh

    10/10/2019, 4:13 PM
    check the public one
  • s

    Smakosh

    10/10/2019, 4:13 PM
    and follow what your instructor did and u’ll be good to see ur data
  • s

    Smakosh

    10/10/2019, 4:16 PM
    you don’t have to install the 1.34 precisely, listen to what Andrew mentioned during the course, that you can install the latest Prisma version
  • s

    Spencer Olsen

    10/10/2019, 7:40 PM
    Has anyone successfully tackled authorization on sub-queries? We need to restrict users from making sub-queries that they aren't allowed to do. We also need to restrict what they are allowed to query back after performing a mutation. An example:
    Copy code
    query account {
      account(where: { id: "ACCOUNT_ID" }) {
        name
        state
        accountUsers {
          userProfile {
            id
          }
          roles {
            id
          }
        }
      }
    }
    We want to restrict it so that only those who have the correct permissions are allowed to query all users on an account. Others should be restricted to only querying basic info, such as the account name or state. The same would be true on the query back after performing a mutation. Does anyone know of an existing library that would help with this? Or would we need to implement our own resolvers, parse through the queries and then perform the needed authorization checks? As a little background info: We have an Apollo server that stands in front of our Prisma server. We merge the Prisma schema with others to provide a global schema to the front end.
    t
    k
    • 3
    • 5
  • k

    Kyle Melton

    10/10/2019, 10:55 PM
    How do I use the Json scalar type? In my frontend schema I have it as a String, since Json is not a defined type. Then in the resolver I parse the string and send it to Prisma. Now that I'm trying to get the data back out of the database I get the error that
    String cannot represent value: {...}
    . Where did I go wrong?
    j
    • 2
    • 1
  • s

    Sujoy Saha

    10/11/2019, 4:35 AM
    Hi I have just started with graphql and prisma. I am stuck in a error. Can you people help me on this?
  • s

    Sujoy Saha

    10/11/2019, 4:35 AM
    Hi I have just started with graphql and prisma. I am stuck in a error. Can you people help me on this? https://stackoverflow.com/questions/58315585/variable-data-expected-value-of-type-votecreateinput
  • m

    Morten Bo Rønsholdt

    10/11/2019, 8:11 AM
    is there any way on the server to get an event/hook whenever a model is created, updated and deleted? we are using nested mutations. if we had a mutation for every operation we would obviously know but we need a more generalized solution
  • i

    inno

    10/11/2019, 8:16 AM
    check out prisma subscriptions,
  • j

    Joakim Karlsson

    10/11/2019, 8:19 AM
    it doesn’t look durable
  • j

    Joakim Karlsson

    10/11/2019, 8:19 AM
    how would we know about stuff that got deleted when the subscriber was not listening? ( during f.x restarts, deploy etc )
1...318319320...637Latest