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

    Robert Herzog

    12/02/2019, 3:14 PM
    Hi everybody. is it possibe that the cli has some issues in v 1.34.10 ?

    https://www.dwpic.de/rh/RjughSAO4Lo1dlDKeUUP1tLpF5fz4c8Mij1FlRRdO0uqlSS4MoaybzgBGeWWMOcHVL5vnFu5XuiKCfuoRyIA8VWGPxKX9huzXMp4.png▾

    • 1
    • 3
  • e

    Ejaz Ahmed

    12/02/2019, 3:47 PM
    Hi, how is everyone doing. I have few questions. I want to use prisma in my next project. Which version should I use? It feels like prisma is in middle of moving to version 2 which isn't stable yet.
    n
    d
    • 3
    • 4
  • t

    Tomislav Stampfel

    12/02/2019, 4:28 PM
    Hi, hope someone can provide me with some insight here. I successfully deployed my first local prisma server to docker. Then I removed it since I wanted to test it with MongoDB and now I am getting this message : "Could not connect to server at http://localhost:4466. Please check if your server is running." . When I run "docker ps" I can see that container is running. Thank you in advance.
    d
    r
    • 3
    • 2
  • m

    Matyas Furtos

    12/03/2019, 6:30 AM
    Hey! I use Postgres with Prisma 1.34 and I have a case when I search (name_contains) in a column where there can be language specific special characters (éáő etc.). Can it be done to teach the search function to treat these special characters as [a-z] characters only? There's a tool called 'unaccent' for this but I'm not a big PG expert and I'm not sure how can you do this with Prisma. My alternate solution is to save in a different column the value that I will search for and this will have these special characters transformed in their corresponding [a-z] characters and I will have a column used with the value with the special characters and this will be used for dispaly name on the frontend.
    n
    • 2
    • 1
  • r

    Rodion Artyukhin

    12/03/2019, 3:31 PM
    Hi! I've encountered a problem using prisma alongside with another docker container in which I have graphql server written in golang. I get ECONNREFUSED when I'm trying to connect to prisma service. The only solution I've found is to change endpoint to http://prisma:4466. So I wonder how should I do that? Reinit prisma with this endpoint? Since just changing endpoint property in prisma.yml and running prisma deploy gives me an error. Your assistance will be highly appreciated. Thanks!
  • a

    Adam Howard

    12/03/2019, 5:23 PM
    Hey 👋 Looking for help with app.prisma.io. After logging in I just get an empty gray screen. Latest chrome on mac
    i
    • 2
    • 2
  • z

    zliuwd

    12/03/2019, 7:37 PM
    Hi, we have a issue with prisma 1.0, thanks for any help: some time we make a small change with data model then we run the prisma deploy, the prisma does not really do the migration until we prune the docker and re-run the deploy, we want to know how to resolve it, thank you
  • j

    James Mungai

    12/03/2019, 8:49 PM
    Apparently after updating to the latest prisma, the problem disappeared. It doesn't ask you which schema you want to introspect when configuring so when you deploy you can specify the service/stage then create corresponding service_name$stage_name as intended.
  • c

    captaindaylight

    12/03/2019, 11:58 PM
    Hey, is there a way to manually set
    createdAt
    when creating an item? I'm trying to create a session object that has a specific start time but it looks like the field name
    createdAt
    is protected and you must use the
    @createdAt
    directive with it
    r
    • 2
    • 3
  • s

    Sorin Cristea

    12/04/2019, 7:02 AM
    hey guys, I'm new on graphql area, I want to return a list of objects( form a db interogation I got the list, don't metter what type), I defined resolver for this thing, I have a list of js objects, have I to define also resolvers for each field for object from list ? meaning I have for ex an id, have to define an resolver for it. thx
    r
    • 2
    • 2
  • a

    Aperrix

    12/04/2019, 5:05 PM
    hi everyone ! how are you ?
    👍 1
  • a

    Aperrix

    12/04/2019, 5:14 PM
    could anyone tell me if it is possible to separate .prisma files with prisma2 please?
    a
    • 2
    • 2
  • g

    Grace Zarczynska

    12/04/2019, 8:46 PM
    Hey, when getting an array of elements back from Prisma I started receiving
    [ [Object null Prototype] {Object},  [Object null Prototype] {Object} ]
    Does anyone had a similar issue and how did you resolve it? The query is basically
    enrollments: [Enrollment!]!
    and forwarded to db
  • g

    Grace Zarczynska

    12/04/2019, 8:48 PM
    The query made is in the backend and is something like that:
    await db.query.enrollments({}, '{ id }')
  • n

    Nesh

    12/04/2019, 11:11 PM
    Question about prisma v1 (container). Where is the schema for prisma located? I”m seeing an issue where database has the new field but prisma keeps throwing error “Cannot query field X on Type Y”
    r
    • 2
    • 9
  • p

    pancake

    12/04/2019, 11:26 PM
    Question re: node implementation of
    prisma
    . Has anyone had success instantiating multiple databases in a single function? I'm attempting to write coupon values to a production & a preprod database concurrently... and continue to get the
    Ensure that there is only one instance of "graphql" in the node_modules
    warning.
  • n

    Nesh

    12/04/2019, 11:53 PM
    Does anyone here know how prisma container has the schema ?
  • j

    Jeff

    12/05/2019, 9:09 PM
    I'm building a booking app and I want to notify the client when things are overdue. I'm currently using React/React-Native, GraphQL, Node, Prisma, and PostgreSQL. In order to check whether an item is overdue or not, I can schedule cron to periodically compare the due date and whether the item is still being rented or not. For example, using either
    node-schedule
    or
    node-cron
    ,
    Copy code
    import schedule = from 'node-schedule';
    
    const j = schedule.scheduleJob('0 12 * * *', function(){
      // query every item in the Postgres database at noon and process the comparison
    });
    The problem is, as the database grows, querying every single item everyday will become inefficient. Through my research, I found out you can use Postgres extension like pg-cron, but is there a way to achieve this in a more efficient manner with Prisma? Thank you.
    r
    • 2
    • 4
  • p

    Pkmmte

    12/07/2019, 12:52 AM
    I'm trying out Prisma2 and noticed that queries aren't automatically generated the way they were on Prisma 1. Is there a way to replicate that old functionality? It's kind of annoying having to do it yourself every single time when you're just trying to launch a quick demo...
    s
    • 2
    • 2
  • c

    Christoph Dietrich

    12/07/2019, 11:43 PM
    did someone see this before? Error: Type generator exists in middleware but is missing in Schema. Try to get the graphql shield example to run
    a
    • 2
    • 1
  • g

    Grace Zarczynska

    12/08/2019, 11:35 AM
    Still struggling with that 😂
  • s

    Scott Grunwald

    12/08/2019, 3:49 PM
    Hey all! Hope everyone is doing fine. I'm start to learn GraphQL/Primsa. Looking for some clarification if possible. Using the graphQL-CLI I genereated newProject with (Node+Auth). It appears the the GraphQL API is hosted on a Prisma Demo Server, and I can't find where the the DB is... I would like to configure the API locally via Docker and configure my own postgres remote server
    d
    • 2
    • 8
  • m

    Mohammad Abed

    12/08/2019, 9:19 PM
    Hey guys, i have a prisma datamodel and the email is unique . I can still add more users having the same email. Any idea why?
  • m

    Marcos (bounsel)

    12/09/2019, 8:03 AM
    Has someone experience with prisma1 and nexus in microservices stitching?
  • j

    Jovaanc

    12/09/2019, 2:57 PM
    Hello, I use Prisma and GraphQL and I would like to use OR in the clause where but OR is not available, how do I do that?
  • a

    Arny

    12/09/2019, 5:26 PM
    Hi guys, is there a firestore connector ?
  • d

    David

    12/10/2019, 7:05 AM
    Hello, anyone who has an experience in building server with massive database using GraphQL with Apollo or ElasticSearch or sth? Which frameworks/databases/libraries should I use to get best performance with GraphQL? Thank you in advance.
  • c

    Cigoler

    12/10/2019, 10:09 AM
    I previously had Prisma running and working - but came across a connection refused error. One of the suggestions was to change the endpoint name from localhost to prisma, so I did that in the prisma.yml - then ran docker deploy to update it and got the error could not connect to server. Changed it back to localhost, same problem. Decided to kill the docker containers relating to prisma, but still I can't seem to get away from this could not connect to server error. What is that?
  • c

    Cigoler

    12/10/2019, 10:22 AM
    My head is like one of those fucking russian dolls. I hadn't redeployed the docker container 😕
  • c

    Cigoler

    12/10/2019, 10:23 AM
    panic over, but why can't my node server in another docker container access the prisma endpoint? It gets error connection refused?
1...337338339...637Latest