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

    Ben Schwartz

    07/29/2020, 1:48 AM
    I’m in a real bind here. I started a company with two cofounders a few weeks and we have a working-name for the company, but not one we’re happy about yet. Any tips for coming to a name?
    a
    • 2
    • 3
  • w

    warmSnowyMorning

    07/29/2020, 2:52 AM
    are there any guides to start using prisma 2+nexus without typescript? i really enjoyed using prisma 1 and i'm currently trying to incorporate prisma 2 into my chrome extensions workflow, but i don't know typescript pls help
    r
    • 2
    • 3
  • k

    Kervin Vasquez

    07/29/2020, 9:34 PM
    Is anyone else getting this message when cors settings are used in the latest "next" release of nexus: "CORS does not work for serverless handlers. Settings will be ignored."
  • m

    maaft

    07/30/2020, 9:21 AM
    Hi, do we have a channel for the prisma-client-go package currently?
    n
    • 2
    • 1
  • s

    Sumit Heda

    07/30/2020, 9:48 AM
    Hi i am running command : prisma migrate save and getting this error :-
    The above error occurred in the <TabIndexProvider> component:
    in TabIndexProvider
    in App
    React will try to recreate this component tree from scratch using the error boundary you provided, App.
    Warning: App: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.
    I am not using react in backend can anyone help me to resolve this error
    j
    r
    • 3
    • 14
  • g

    Gabriel Colson

    07/30/2020, 2:41 PM
    Hi! I just published an article on how to build production grade GraphQL API with Prisma: https://blog.geographer.fr/prisma-graphql-api Feedbacks are welcome and let me know if you have any questions 😉
    💯 3
    prisma green 2
  • l

    lawjolla

    07/30/2020, 9:14 PM
    Any info on a codemod or other help migrating from Prisma Client 1 to 2?
    r
    n
    • 3
    • 2
  • w

    warmSnowyMorning

    07/30/2020, 11:28 PM
    hey, i have a question about prisma 1. how can i use graphiql IDE instead of playground?
    r
    • 2
    • 2
  • c

    Charles Gaudreau Jackson

    07/31/2020, 1:51 AM
    Hi! Is there an up-to-date tutorial similar to https://www.howtographql.com/? Thank you!
    r
    • 2
    • 5
  • d

    DeanMo

    07/31/2020, 2:31 AM
    that with nexus/prisma integration would be so ace.
  • d

    DeanMo

    07/31/2020, 2:31 AM
    ive been trying to do it myself just not good enough yet, still learning
    r
    n
    a
    • 4
    • 25
  • a

    Awey

    07/31/2020, 9:45 PM
    How would I change the way a type is resolved in nexus? I don't like the way my notes are being returned and I want them to be in some order by position value. No matter what type of query it's returned from. So if I had a query like this
    Copy code
    {
      project(id: "40f04272-35eb-4b38-9d3b-b47df2efe897") {
        id
        description
        columns {
          id
          name
          notes {
            id
            title
            text
            position
          }
        }
      }
    }
    Or
    Copy code
    {
      column(where:{id:"8ff1cdb8-17f1-4f40-b3de-1676567d823a"}){
        name
        notes {
          id
          title
          text
          position
        }
      }
    }
    I always want the notes array objects to be in
    a.position - b.position
    order.
    r
    • 2
    • 2
  • m

    milos

    08/01/2020, 4:07 PM
    hello, I just joined this slack cause I have a specific prisma problem. Which channel is the right one to ask for some help? 🙂 (prisma2 im using)_
    l
    • 2
    • 1
  • n

    nonissue

    08/01/2020, 9:00 PM
    Hope it’s okay I crossposted this here
  • w

    warmSnowyMorning

    08/02/2020, 2:13 AM
    hey, on prisma 1 docs, it shows that we can use @default(true) but it's incorrect, it must be @default(value: true)
    r
    • 2
    • 1
  • c

    cesRay

    08/02/2020, 5:21 AM
    Hello, guys. I'm new in Prisma and in web dev in general. I ran into some problems that required me to delete a migration folder. I've been reading the docs and I don't know where or how to run
    TRUNCATE _Migration;
    . Can anyone help me, please? Thank you very much in advance.
  • n

    nonissue

    08/02/2020, 8:18 AM
    @cesRay Pretty sure you’d do that using raw sql with whatever database you are using
  • n

    nonissue

    08/02/2020, 8:18 AM
    are you using sqlite?
    c
    r
    • 3
    • 3
  • n

    nonissue

    08/02/2020, 8:20 AM
    if you are using sqlite, I think you could do something like
    Copy code
    sqlite3 ./prisma/deb.db
    TRUNCATE _Migration
  • s

    Sascha

    08/02/2020, 1:43 PM
    Hey there 🙂
  • s

    Sascha

    08/02/2020, 1:45 PM
    So, Prisma 2 docs say the following...
    t.model
     will either have field projectors for the Prisma model whose name matches that of the GraphQL 
    Object
    , or if the GraphQL 
    Object
     is of a name that does not match any of your Prisma models then 
    t.model
     becomes a function allowing you to specify the mapping, after which the field projectors become available.
    Is there any way I can
    name
    my
    objectType
    the same as a type in Prisma, but still select field types from another as well?
    j
    • 2
    • 1
  • s

    Sascha

    08/02/2020, 1:46 PM
    As an example:
    Copy code
    schema.objectType({
      name: 'Item',
      definition(t) {
        t.model.id()
        t.model.name()
        t.model('ItemInstance').data()
      }
    })
    Unfortunately the explicit selection of
    ItemInstance
    doesn't work in this case, as model is not a function as soon as the
    name
    of the
    objectType
    matches a Prisma type.
    r
    • 2
    • 5
  • f

    Freddy Rivero

    08/02/2020, 3:27 PM
    hello, I am having a problem with prisma, and docker. I have a container running mysql and a docker containing prisma server. Thing is, when I try to load the prisma server, I get a socket problem it says: ▸ ‘ECONNRESET’: request to http://127.0.0.1:4466/management failed, reason: socket hang up - when I try to run “prisma deploy”, it goes the same if I try to use localhost instead of 127.0.0.1. Any clues? Thanks
    r
    • 2
    • 1
  • f

    Freddy Rivero

    08/02/2020, 3:27 PM
    eerr whoops
  • a

    Anastasia Z

    08/02/2020, 6:10 PM
    Hi guys! Is there any word out when prisma 2 might support user defined types/ composite types? I've tried searching in the docs and on github but no dice. Is there a way to do it now but I am just missing it?
    r
    • 2
    • 3
  • k

    KJReactor

    08/02/2020, 8:46 PM
    Anyone know for what reason ``@updatedAt`` won't work?
    r
    • 2
    • 14
  • h

    Harshit

    08/03/2020, 12:52 PM
    Launching a personal side project which is related to Prisma 🙂 https://twitter.com/pantharshit00/status/1290258825040150528
    fast parrot 10
    👍 1
    🇳🇬 1
    prisma cool 7
  • s

    Suhail

    08/04/2020, 8:47 AM
    Can we make Prisma work with the Cosmos DB? Will it work out of the box?
    j
    • 2
    • 6
  • j

    Jeanre Swanepoel

    08/04/2020, 11:26 AM
    Hi all, I am trying to do a prisma 1 to 2 upgrade
  • j

    Jeanre Swanepoel

    08/04/2020, 11:27 AM
    but we are using prisma 1's hosted solution
1...389390391...637Latest