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

    Jackson Malloy

    02/19/2020, 7:23 AM
    It would be awesome if the Prisma team could update this repo here: https://github.com/prisma/prisma-examples/tree/prisma2/deployment-platforms/docker I've been really struggling getting prisma2 up and running in a dockerized environment.
    m
    • 2
    • 3
  • y

    yassine

    02/19/2020, 12:01 PM
    hi everyone can anyone point to me a nice prisma2 auth system with jwt and graphql please
    graphql 3
    n
    m
    e
    • 4
    • 9
  • o

    Omar Nasr

    02/19/2020, 9:03 PM
    Hey all, new to the channel and exploring Prisma ! I have a quick question, does Prisma support PostgreSQL full text search capabilities. All I could find on this topic is this forum https://www.prisma.io/forum/t/full-text-search/3658
    s
    • 2
    • 3
  • b

    Benjamin Wilson

    02/20/2020, 3:03 AM
    Is there any known issues currently with Prisma cloud? My server status is reading not reachable, and the pages for either of my services load indefinitely. And I am unable to run a prisma deploy command, getting error of
    Copy code
    ERROR: No cluster could be found for workspace '*' and cluster 'default'
  • r

    Ruhan Khandakar

    02/20/2020, 4:42 AM
    Getting this error , when m deploy into prisma server.
  • r

    Ruhan Khandakar

    02/20/2020, 4:43 AM
    👆
    NEED URGENT HELP
  • v

    Victor Mukherjee

    02/20/2020, 4:08 PM
    Hi, is the graphql-request npm package is no longer developed actively? What is the future of it?
    t
    • 2
    • 1
  • j

    johhansantana

    02/20/2020, 8:37 PM
    hello, is there a way to donate to the prisma team?
  • o

    Omar Nasr

    02/20/2020, 10:47 PM
    Ran into a couple of issues while trying to use full text search capabilities in postgresql with prisma. Solution I settled on is to create a trigger function that runs before insert or updates to process text from a specified column into
    TSVECTOR
    and store in another column. Then create a index on that processed column. The issue with this solutions is inserts and updates will progressively get slower as the table gets larger, however for my use cases it works. SQL is contained in link https://github.com/sara-sabr/ITStrategy/issues/806
    • 1
    • 1
  • n

    Natalia

    02/21/2020, 10:20 AM
    Hi, I'm having troubles with updateMany and deleteMany mutations for embedded types and wondering if I'm doing something wrong. I'm using prismagraphql/prisma:1.34 and mongo:3.6 this is my datamodel:
    Copy code
    type Goal {
      goalId: ID! @id
      solutions: [Solution]
    }
    
    type Solution @embedded {
      solutionId: ID! @id
      name: String!
      factsDelta: [FactsDelta!]!
    }
    
    type FactsDelta @embedded {
      jsonPath: String!
      jsonData: String!
    }
    These mutations execute without errors, field "name" on solutions is updated correctly, but updateMany and deleteMany on factsDelta do nothing, leaving factsDelta.jsonData untouched:
    Copy code
    mutation {
      updateGoal(
        where: {
          goalId: "5e4eb158857aba000744a8eb"
        },
        data: {
          solutions: {
            update: {
              where:{
                solutionId: "5e4eb87f857aba000744a902"
              },
              data:{
                name: "this field is updated correctly"
                factsDelta:{
                  updateMany:[
                    {
                    	where: {
                        
                    	},
                    	data: {
                     	 jsonData: "this isn't"
                    	}
                  	}
                  ]
                }
              }
            }
          }
        }
      ) {
        goalId
        solutions {
          solutionId
          name
          factsDelta {
            jsonPath
            jsonData
          }
        }
      }
    }
    Copy code
    mutation {
      updateGoal(
        where: {
          goalId: "5e4eb158857aba000744a8eb"
        },
        data: {
          solutions: {
            update: {
              where:{
                solutionId: "5e4eb87f857aba000744a902"
              },
              data:{
                name: "this field is updated correctly"
                factsDelta:{
                  deleteMany:{
                  }
                }
              }
            }
          }
        }
      ) {
        goalId
        solutions {
          solutionId
          name
          factsDelta {
            jsonPath
            jsonData
          }
        }
      }
    }
    While updateMany and deleteMany on solutions field works just fine:
    Copy code
    mutation {
      updateGoal(where: {
          goalId: "5e4eb158857aba000744a8eb"
        },
        data: {
          solutions: {
            updateMany:{
              where:{
              },
              data: {
                name: "this field is updated correctly"
              }
            }
          }
        } ) {
        goalId
        solutions {
          solutionId
          name
          factsDelta {
            jsonPath
            jsonData
          }
        }
      }
    }
    Thanks
  • j

    Justin Prather

    02/21/2020, 1:49 PM
    I have a schema with two tables, with an inline many to one relation between them. Is there a way to query for all the items that are not involved in any relations? Either via the graphql api or Prisma client?
    t
    • 2
    • 4
  • a

    Alex Vilchis

    02/21/2020, 2:39 PM
    Hello, good morning! I am working on a project which involves 28 models in the schema.graphql file. What would be the best approach when building the resolver functions? Do I really have to make over 112 functions to support all CRUD operations on my models? Thanks.
    👍 1
    l
    m
    • 3
    • 6
  • a

    Amaan Sayed

    02/21/2020, 6:16 PM
    Hello! I want to use Stripe to process payments. I’m using React Native, GraphQl, and Prisma for my backend (the server and database is set up through Prisma and Heroku). Does anyone know how I can do this? Do I have to partially set up my backend to deal with payments as well? I’m not quite sure how to do this and I can’t find any tutorials for react native and graphql integrating stripe
    k
    • 2
    • 1
  • s

    Samrith Shankar

    02/22/2020, 1:28 AM
    Hey guys, Glad to be here! 🙂 I am actually starting with a major open source Prisma and GraphQL project, and was wondering if any of you would be interested in contributing? We can discuss more in detail in DMs. Feel free to hit me up!
    👍 2
  • r

    RMCS

    02/22/2020, 8:23 AM
    If some magic wizard could help me with the following issue https://github.com/prisma-labs/nexus-prisma/issues/611 i would genuinely believe that you are one
  • l

    Lars Ivar Igesund

    02/22/2020, 11:34 AM
    Did anyone try to connect prisma to a mongo database with replica sets? The connection string for these (comma separated items for the set) don't validate in what seems to be the Node.js URL class. I suppose it could be just the prisma-cli though
  • l

    Lars Ivar Igesund

    02/22/2020, 11:51 AM
    Turns out that the client is the least of my problems, see https://github.com/prisma/prisma/issues/4417
  • l

    Lars Ivar Igesund

    02/22/2020, 11:51 AM
    @nilan Are you still involved with the mongo connector for Prisma? Note that I use prisma 1.
  • l

    lionbrahh

    02/22/2020, 1:20 PM
    does OR for query not available in Prisma?? i tried OR but it was make my IDE red , errror
  • l

    lionbrahh

    02/22/2020, 1:27 PM
  • m

    Madison Haradine

    02/22/2020, 5:47 PM
    Anyone have insight on why
    $prisma deploy
    isn't actually saving my changes after it updates them? https://stackoverflow.com/questions/60354928/prisma-isnt-applying-changes-after-prisma-deploy
  • j

    Jackson Malloy

    02/22/2020, 6:44 PM
    Could anyone point me in the direction of a relatively large example of a prisma.schema file? I'm curious to see what one would look like.
  • m

    Matti Joik

    02/22/2020, 11:30 PM
    Hi! I could use some help 🙂 We got the datamodel by introspecting the database. We first got a naming conflict error because of two equal types in a type. Looked at similar issues, saw that we should go below 50 characters for relation names. Tried this, but got a server error. We later tried to remove this relation and its types just in case, but received the same error again. We have the server logs here: https://justpaste.it/516im Have looked through the documentation and searched through issues / forum, but not really sure. Does anyone here have experience with a similar error?
  • s

    Samrith Shankar

    02/23/2020, 1:08 AM
    Hey, I was wondering what this error means:
    Copy code
    Error validating model "Task": Automatic related field generation would cause a naming conflict. Please add an explicit opposite relation field.
    I don’t seem to understand what the
    explicit opposite relation field is
    .
  • s

    Samrith Shankar

    02/23/2020, 1:09 AM
    I have this in my Task model:
    Copy code
    author User @relation(name: "taskAuthor", references: [id])
    assignee User @relation(name: "taskAssignee", references: [id])
    And it throws this error for
    assignee
  • s

    Samrith Shankar

    02/23/2020, 2:04 AM
    Nevermind, figured it out. Had to add relations in User as well. 🙂
  • a

    Ashiqur Rahman

    02/23/2020, 6:12 AM
    I want to set up a different database for testing prisma app. anyone knows how can I achieve it? any example?
    a
    • 2
    • 1
  • n

    Nick

    02/23/2020, 11:16 AM
    When is the public release of prisma 2 I think I have heard somewhere that they are aiming to release this month?
  • y

    yassine

    02/23/2020, 11:36 PM
    Property 'model' does not exist on type 'ObjectDefinitionBlock<"User">'.ts
  • y

    yassine

    02/23/2020, 11:36 PM
    any one know the solution
1...347348349...637Latest