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

    Alexander

    05/21/2019, 1:52 AM
    Hi everyone, i need you help. I am using Prisma 1.33 and i executed
    prisma deploy -e .env
    , this process fail and i go to the logs in container, it show me this
    Encountered unknown SQL type timestamptz with column last login. IntrospectedColumn(last login,timestamptz,null,true)
    . How can i fix this ? I am using postgres. Thanks for you help
    b
    • 2
    • 2
  • h

    Hyo

    05/21/2019, 2:40 AM
    Hi everyone, we are planning to use
    prisma
    with our production service. Is this ok to use
    prisma
    v1 when
    prisma2
    is comming? I am afraid if there could be any heavy migration issue.
  • g

    gem

    05/21/2019, 11:16 AM
    hello, i’m looking for an example with Prisma and file upload but the example in the migration doc from graphcool to prisma has a 404 link
    s
    • 2
    • 3
  • h

    Hoang

    05/21/2019, 1:02 PM
    Hi guys, I am having this issue in the container, is it because I am connecting to Postgresql without a user value? I am doing it on localhost. Thanks
    j
    • 2
    • 3
  • h

    Hoang

    05/21/2019, 1:02 PM
    Copy code
    Exception in thread "main" java.lang.RuntimeException: Unable to load Prisma config: com.prisma.config.InvalidConfiguration: Expected user to be non-empty
    	at scala.sys.package$.error(package.scala:26)
    	at com.prisma.config.ConfigLoader$.load(ConfigLoader.scala:40)
    	at com.prisma.local.PrismaLocalDependencies.<init>(PrismaLocalDependencies.scala:48)
    	at com.prisma.local.PrismaLocalMain$.delayedEndpoint$com$prisma$local$PrismaLocalMain$1(PrismaLocalMain.scala:13)
    	at com.prisma.local.PrismaLocalMain$delayedInit$body.apply(PrismaLocalMain.scala:8)
    	at scala.Function0.apply$mcV$sp(Function0.scala:34)
    	at scala.Function0.apply$mcV$sp$(Function0.scala:34)
    	at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
    	at scala.App.$anonfun$main$1$adapted(App.scala:76)
    	at scala.collection.immutable.List.foreach(List.scala:388)
    	at scala.App.main(App.scala:76)
    	at scala.App.main$(App.scala:74)
    	at com.prisma.local.PrismaLocalMain$.main(PrismaLocalMain.scala:8)
    	at com.prisma.local.PrismaLocalMain.main(PrismaLocalMain.scala)
  • h

    Hoang

    05/21/2019, 1:16 PM
    Loading....
    d
    s
    • 3
    • 22
  • h

    Hoang

    05/21/2019, 1:17 PM
    Hi, I created a new hello-world application from the quick start tutorial here: https://github.com/prisma/prisma, running with postgresql and I got this screen after running
    prisma deploy
    a
    • 2
    • 2
  • h

    Hoang

    05/21/2019, 1:17 PM
    any ideas please ?
  • h

    Hoang

    05/21/2019, 1:18 PM
    Copy code
    prisma --version
    Prisma CLI version: prisma/1.33.0 (darwin-x64) node-v8.15.1
    Prisma server version: 1.33.0
  • f

    Francis John

    05/21/2019, 8:05 PM
    This may be more of a posgres question but I’m trying to create a user and as part of this generate a unique username for that user. Any suggestions on the best way to go about this? My initial research showed postgres ‘triggers’ might be one way to do it but I’m not sure how to accomplish that with prisma. My naive implementation would otherwise be to include some random values along with lets say the user’s firstName.lastName and repeat until there are no collisions, but that’s probably not the best way to do this
    j
    • 2
    • 10
  • j

    Jscott388

    05/22/2019, 1:58 AM
    I have a prisma setup locally connected to a AWS RDS. I have 50,000 records to insert, why is my speed so slow? I did this locally with local database, it was much quicker.
    h
    b
    • 3
    • 4
  • j

    Jeff

    05/22/2019, 2:07 AM
    Does anybody know how many floating points the
    Float
    type allows? I'm trying to mutation something like -79.39048179999998, but it keeps showing up as "0.000000000000000000000000000000"
    j
    • 2
    • 1
  • j

    Jidé

    05/22/2019, 7:06 AM
    hey folks !
  • j

    Jidé

    05/22/2019, 7:06 AM
    i’m trying to add a scalar field
    labels: [String] @scalarList(strategy: RELATION)
  • j

    Jidé

    05/22/2019, 7:07 AM
    but when i do a mutation to create content in this field, it works, but then the field remains empty. Is it a known bug ?
    s
    • 2
    • 3
  • o

    Oliver Evans

    05/22/2019, 7:36 AM
    Oliver Evans [3:28 AM] Hi all, I'm wondering if it's possible to deploy a prisma service to a custom endpoint via nginx. I have a service
    my-service
    and a stage
    dev
    deployed. I can access it within my cluster via graphql playground without an issue at
    <https://internal-service-address/my-service/dev>
    . Now, I want to make it externally available at
    <https://my-website.com/prisma-dev>
    , so I have nginx routing
    <https://my-website.com/prisma-dev> -> <https://internal-service-address-my-service/dev>
    . If I send a graphql query to
    <https://my-website.com/prisma-dev>
    , then I get
    Copy code
    {
      "errors": [
        {
          "message": "Project not found: 'prisma-dev_default'",
          "code": 3016,
          "requestId": "local:cjvywtsd8z7160999t2tfncc0"
        }
      ]
    }
    and if I send a query to
    <https://my-website.com/prisma-dev/my-service/dev>
    , then I get
    Copy code
    {
      "errors": [
        {
          "message": "Project not found: 'prisma-dev~my-service_dev'",
          "code": 3016,
          "requestId": "local:cjvywxpufz71d0999cn56um0b"
        }
      ]
    }
    Is there a recommended way to deal with this situation? Thanks! Oliver
    d
    • 2
    • 1
  • h

    Hoang

    05/22/2019, 12:00 PM
    Hi guys, is there a way I can declare the createdAt, and updatedAt the same way as Mongoose does with a
    timestamps: true
    ?
    solved with the directives.
    👍 1
  • m

    Matthew Sheets

    05/22/2019, 2:46 PM
    Hey folks, I'm banging my head here trying to deploy using postgres cloud by Digital Ocean the connection works but it fails do to: ERROR: unsupported startup parameter: search_path
    c
    • 2
    • 1
  • m

    Matthew Sheets

    05/22/2019, 2:46 PM
    has anyone deployed with a bypass on the parameter: search_path?
  • j

    Jared

    05/22/2019, 4:57 PM
    Howdy folks! I was wondering what you are doing to get around the inability to order by nested properties?
    ❤️ 1
    👀 1
    🤔 1
    d
    • 2
    • 3
  • b

    bresson

    05/22/2019, 9:57 PM
    It appears datamodel.prisma and schema.graphql overlap quite a bit but they have different purposes. Every software dev's DRY radar is of course on fire about keeping two representations of the same data ( even if used for different purposes ) in sync. I thought I found a feature to import schemas into datamodel based on the statement from a similar question ( link below ). Can anyone confirm that this statement will work and help me locate it in the docs? I can't locate it .... # import User, Note from './datamodel.generated.graphql' https://www.prisma.io/forum/t/graphcool-1-0-datamodel-graphql-vs-schema-graphql/2063/2
    j
    • 2
    • 8
  • l

    lewisedc

    05/23/2019, 10:18 AM
    Is it possible to get a count of how many items would be returned from a query
    b
    • 2
    • 2
  • s

    stephan

    05/23/2019, 11:40 AM
    prisma client vs prisma bindings any thoughts ?
    n
    s
    • 3
    • 2
  • s

    Sachin Jani

    05/23/2019, 12:54 PM
    Hey everyone, I’ve create a starter/boilerplate having most of the tools you require for a production-ready app and a better development experience. I’d like your feedbacks on it if any. https://github.com/5achinJani/graphql-prisma
    fast parrot 2
    h
    • 2
    • 2
  • m

    Matthew Sheets

    05/23/2019, 5:04 PM
    Hey Everyone, Has anyone deployed on a managed postgres instance anywhere?
    👍 1
    m
    • 2
    • 1
  • g

    gem

    05/23/2019, 7:14 PM
    Hello, anyone has an easy way to expose the filters like it was in graphcool to prisma, i mean for example with the management api, i can query users with where order by etc, but do i have to rewrite every type in the application layer (UserWhereInput, UserOrderInput etc...) ?
  • a

    ahebwa49

    05/23/2019, 8:05 PM
    hello guys, why do i keep getting this error? What am I not doing right?
    j
    n
    • 3
    • 38
  • m

    Mike

    05/24/2019, 3:28 AM
    Hi everyone! I'm just getting started with prisma and its awesome! I'm using the prisma introspect command on a mongodb and it generates the graphql endpoint! Is there anyway that I can get my hands on the generated code? I would like to add some custom resolvers
    n
    • 2
    • 2
  • g

    Gambo

    05/24/2019, 4:51 AM
    hey morning, I've discovered Prisma yesterday and was impressed. There were some questions that the docs couldn't answer though. E.g. how can you restrict access to read / write database entries so that you have to be the owner of it. Let's say your blog posts.
    f
    b
    n
    • 4
    • 18
  • m

    Matteo

    05/24/2019, 12:07 PM
    Hi! Does prisma with mongo offer better performance?
1...271272273...637Latest