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

    lo

    09/02/2018, 3:28 PM
    Hi! Does anyone have any insights what's the status with hosted Graphcool? Basically everything on their website is redirecting visitors to prisma.io and the Github page for Graphcool framework is flooded with (unsolved) issues. I was thinking of developing an app on graph.cool/cloud but I'm starting to hesitate.. 😕
    z
    h
    u
    • 4
    • 9
  • d

    D.C. Thompson

    09/02/2018, 5:54 PM
    We are currently working on a vue.js based PWA & SSR Starter kit using the quasar framework and Prisma. Feel free to check it out: https://github.com/nothingismagick/quasar-starter-ssr-pwa-jest-cypress
  • c

    Chris H

    09/02/2018, 9:25 PM
    More of a graphql question but for the query situations that don't work well from Prisma side (aggregations like SUM, AVG, etc), is there a generally accepted approach of either writing raw sql in your resolver or using an ORM?
  • h

    halborg

    09/03/2018, 7:25 AM
    So I got a very surprising bill from AWS for August this weekend. I’ve set up multiple environments - test, stage and prod. Test and stage are both prisma instances on a AWS RDS db micro instance, and are the only ones that have been used seeing as the app in question is still in development. The production instance is hosted on AWS Aurora. A deploy was made to test that everything was working, but it has received no real traffic. The bill, however, says just over 1000 DB hours for all databases. Which in itself is kind of funny, seing as there is only around 24 * 31 = 744 hours in a month. It’s worth noting that we have no cron-jobs or anything, and our team primarily works between 8-17 on weekdays. Seeing as both databases are paid pr hour of use, I’m trying to investigate what is making requests to keep them alive all the time. I have two suspects: Apollo Engine (for metrics), and Prisma. Does anyone know anything about this?
    b
    n
    +2
    • 5
    • 12
  • h

    halborg

    09/03/2018, 7:27 AM
    The two top ones are the write/read instances/replica of the prod DB, the third one is the stage and last one is the test db. Having some live connections on stage makes sense right now as the client app and mobile app are being developed against it these days, but why are there multiple selects on the prod DB as it’s untouched?
    d
    • 2
    • 1
  • c

    catalinmiron

    09/03/2018, 10:03 AM
    🎆 Guys, I created `Awesome Prisma`❤️ https://github.com/catalinmiron/awesome-prisma where you can find all Prisma resources 📖. If you think I'm missing something feel free to ping me. Contributors are welcome 👋 👍
    🔥 6
    👍 6
    ❤️ 4
    prisma cool 5
    🦜 1
    c
    • 2
    • 2
  • h

    halborg

    09/03/2018, 11:32 AM
    Why is access to the AWS Fargate tutorial for Prisma servers disabled in the docs?
    n
    • 2
    • 1
  • l

    lethot

    09/03/2018, 4:28 PM
    Hi guys, I can't find how to clean subscriptions in my graphql yoga server, it seems that when a websocket connection disconnect, subscriptions are still registered so every time I reload the client application (with apollo client inside), it seems to register a new connection via prisma-bindings, so if I reload my app 7 times, I have one ws connection but the resolve function in my subscription is called 7 times, I found an issue on github but I still have the problem https://github.com/prisma/graphql-yoga/issues/101, did someone already have this issue please ?
    r
    • 2
    • 1
  • l

    Loic

    09/03/2018, 11:15 PM
    Hi! I tried to upgrade our Prisma cluster in AWS using the recommendations given at https://www.prisma.io/forum/t/aws-fargate-rds-update-strategy/3709/6. My current Prisma version is 1.9.0 and once upgrade to 1.15.0, I was getting the following error:
    Project not found: 'thorium-prod@production'
    . I had to revert back to 1.9.0 to fix the issue. Did anybody encountered this or have any idea of what could be happening? thanks!
  • b

    br

    09/04/2018, 6:00 AM
    Hi, I want to implement Query Parameters like Prisma team recommends: https://www.prisma.io/blog/designing-powerful-apis-with-graphql-query-parameters-8c44a04658a9/ Am I right in saying that the approach for this is as in the generated datamodel e.g. https://gist.github.com/gc-codesnippets/3f4178ad93c51d03195c92ce119d444c#file-prisma-graphql-L187 i.e. using Input Types as the query parameter? (e.g.
    UserWhereUniqueInput
    )
    • 1
    • 1
  • a

    Arnab

    09/04/2018, 8:28 AM
    I remember someone saying that there was a library somewhere that could latch on to a GraphQL API and spit out which fields were used by clients and how often. Does anyone remember what it was called?
  • d

    Dylan_b

    09/04/2018, 8:49 AM
    Why can't Prisma take a directory command? I want to run from root instead of cd'ing into the folder
  • z

    zonofthor

    09/04/2018, 9:00 AM
    if I delete a top node containing nested (connected) nodes - should I delete the sub-nodes so that they aren't left as "undeserted" ? Are they cleaned up automatically by some health-check script? I am trying to not have to define relationship in SDL, I know using cascade will take care of this... but is it really needed?
    a
    • 2
    • 22
  • z

    zonofthor

    09/04/2018, 9:03 AM
    and if I should do the clean-up manually, is there any easy way to find disconnected nodes ?
  • g

    gregor

    09/04/2018, 12:56 PM
    Hola people 👋 Do I understand it correctly, that I can't remove root tokens from a Graphcool project? Edit: I meant for already deployed projects via the CLI. Seems like I can add a new one through a new deploy 🤔
  • p

    Plínio Naves

    09/04/2018, 1:18 PM
    Good morning guys, is anyone having problems with graphcool? Mostly with realtime subscriptions?
    s
    • 2
    • 3
  • d

    David

    09/04/2018, 1:56 PM
    Hey, was wondering if could help me out with GraphQLResolveInfo (the info variable in the resolver) basically we need to modify it because we want to apply so "where" filters dynamically and then forward it prisma i havent found any good documentation but maybe i missed something? or maybe there some good helper libraries?
    h
    • 2
    • 2
  • j

    James Bellamy

    09/04/2018, 3:47 PM
    Hi, wondering what the current solution is to this issue:
    Invalid value 'CURRENT_DATE' for type DateTime
    for existing postgres db. - the name of this field is date_created and is used in all of my tables.
    n
    • 2
    • 2
  • r

    rli

    09/04/2018, 5:12 PM
    is this incorporated into prisma now? https://github.com/prisma/prisma/issues/348
  • r

    rli

    09/04/2018, 5:12 PM
    I couldn't see any documentation that explains how to do this
  • m

    magicmike

    09/04/2018, 5:34 PM
    Wondering if anyone has had any luck with the
    subscribeToMore
    api on the new Query component
    c
    • 2
    • 2
  • v

    veksen

    09/04/2018, 9:47 PM
    did anything happen to the Prisma cloud authentication? Previously working login from CI is now failing
    l
    n
    • 3
    • 5
  • v

    veksen

    09/04/2018, 9:48 PM
  • c

    Chris H

    09/04/2018, 10:18 PM
    Anyone know how to fix this? My prisma install suddenly decided it wanted to be on 1.6 no matter what I do (including removing prisma):
    w
    • 2
    • 6
  • l

    Loic

    09/05/2018, 1:32 AM
    are hosted (demo) clusters down for anybody else? We are getting 500s when running queries/mutations
    f
    j
    • 3
    • 3
  • f

    Fran Dios

    09/05/2018, 2:48 AM
    is it possible to do
    upsert
    in a one-to-one relationship? Something like User->Languages, where Languages could be
    null
    because it’s not required. I’d like to update Languages from the User or create it in case it doesn’t exist yet. All the examples I’ve seen are for one-to-many and include a
    where
    object (which is not necessary in this case) 🤔
    n
    • 2
    • 1
  • a

    Andres Montoya

    09/05/2018, 3:22 AM
    Hi, it's a good idea to use socket io of nodejs or graphql-subscriptions of graphql to create a chat... What's better? Or what recommend me?
  • c

    cory

    09/05/2018, 5:09 AM
    I’d like a graphql-yoga server on Heroku that also serves a static React app (same repo). https://github.com/prisma/graphql-yoga/issues/9 got closed. I’m not sure how to go about this… Anyone try to do the same thing?
    • 1
    • 2
  • h

    Haider Malik

    09/05/2018, 5:29 AM
    Hi, can anyone tell me how to resolve this issue? My prisma server is not running
    Copy code
    Error: GraphQL error: request to <https://us1.prisma.sh/haidermalik504/prismaDB/dev> failed, reason: getaddrinfo ENOTFOUND us1.prisma.sh us1.prisma.sh:443
    c
    • 2
    • 3
  • r

    rein

    09/05/2018, 7:12 AM
    Hi guys, quick question, I changed some of my queries to be of the connection type (with
    pageInfo
    and `edges`/`nodes`), however, when I now have a create mutation, I still want to update the client side array of data (now under edges > nodes) to display the created item. I can use
    updateQuery
    but that would mean I have to manually add the edge, node, typename and Symbol id. I was wondering if there was a more elegant/simple way.
1...111112113...637Latest