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

    Rory Kelly

    01/17/2019, 11:36 AM
    https://github.com/prisma/prisma/issues/3888
  • r

    Rory Kelly

    01/17/2019, 11:56 AM
    Whats the email for support?
  • s

    Sebastian

    01/17/2019, 1:15 PM
    Hi Om working on an app to keep track on chores that we have to do in our household and would like some critique on my datamodel. The chores can either be in "upnext" or "archive" optionally they can also be in "todo" - "done". That is a chore can be 1. upnext or archive + done 2. upnext or archive + todo 3. upnext or archive
  • s

    Sebastian

    01/17/2019, 1:16 PM
    -.js
  • s

    Sebastian

    01/17/2019, 1:16 PM
    I could alternativly make an ENUM state on each chore I guess - they will be fetched by this state often
  • p

    prayuditb

    01/17/2019, 2:46 PM
    Hello every one. nice to see you
    šŸ‘‹ 4
  • h

    hamdi

    01/17/2019, 3:44 PM
    Hello friends i want to add midlware to graphql resolve whats the best strategie
    midlware_graphql.js
  • r

    rem

    01/17/2019, 5:55 PM
    Is it possible to have a Type resolver that instead of resolving single fields, but the entire object? My use case, I'm storing an ISO country code in the postgres database, but the graphql data actually comes from static JSON data.
  • a

    Anthony

    01/17/2019, 7:05 PM
    When I use
    prisma.createPost
    it is returning all of the Posts scalar fields but not things like Author, is this normal?
  • r

    rem

    01/17/2019, 7:42 PM
    If I have a legitimate schema type called "Subscription" (that holds user's paid subscriptions), is that going to mess up my ability to run Prisma/graph subscriptions?
  • r

    rem

    01/17/2019, 7:42 PM
    (I'm thinking it does, just took me a while to get to this…!)
  • a

    Anthony

    01/17/2019, 7:45 PM
    it may get confusing to read buti believe it will be fine
  • f

    faure

    01/17/2019, 8:07 PM
    Is it possible to import a type from a prisma generated graphql file and then modify a field of it?
    r
    h
    • 3
    • 5
  • d

    Dan Fein

    01/18/2019, 1:35 AM
    HOWDY!
  • d

    Dan Fein

    01/18/2019, 1:35 AM
    I have a question if this is the right place to ask?
  • r

    Ramin B

    01/18/2019, 2:22 AM
    Indeed!
  • r

    Ramin B

    01/18/2019, 2:22 AM
    and welcome @Dan Fein
  • p

    philch

    01/18/2019, 3:19 AM
    Anybody know if there’s a way to protect the Prisma client by specifying which operations to generate? For instance you don’t want to ever allow users to be deleted from a client that’s accessing Prisma?
    m
    v
    l
    • 4
    • 5
  • d

    Dan Fein

    01/18/2019, 3:22 AM
    Is it possible to add more ā€œwhereā€ searches than just ID?
  • p

    philch

    01/18/2019, 3:26 AM
    On a single entity?
  • p

    philch

    01/18/2019, 3:26 AM
    Any unique value can be used @Dan Fein
  • d

    Dan Fein

    01/18/2019, 3:32 AM
    ok thanks a lot, just not specifying @unique on them currently. thanks!
  • e

    Emil Forsmann

    01/18/2019, 11:03 AM
    Quick question, if you’re running Prisma w. Yoga, is there any reason to choose MySQL over MongoDB and vice versa?
    m
    v
    • 3
    • 3
  • v

    Viable

    01/18/2019, 3:06 PM
    greetings, would anyone possibly be able to help me create a really simple subscription resolver that sends a message every second? My attempt so far is https://pastebin.com/wutBqskv but i'm brand new to iterables in js šŸ˜ž
    j
    t
    • 3
    • 2
  • c

    cb

    01/18/2019, 6:59 PM
    How do we disable "subscriptions" on the server?
    e
    • 2
    • 4
  • c

    CCBCodeMonkey

    01/19/2019, 4:35 AM
    wow thats an ugly new slack logo... anyways is anyone storing comment threads in prisma?
  • c

    CCBCodeMonkey

    01/19/2019, 4:35 AM
    I am curious how you stored it schemawise
    e
    a
    • 3
    • 13
  • w

    woss

    01/19/2019, 9:16 AM
    is it possible to have PK with UUID instead of ID?
  • i

    i_priz

    01/19/2019, 3:25 PM
    Hi! I decided to try using Prisma for the first time and encountered a problem regarding adding business logic to resolvers. Suppose I have a mutation
    createOrder
    . A user can only create order if they have less than 5 active orders
    v
    • 2
    • 1
  • i

    i_priz

    01/19/2019, 3:25 PM
    So, how to count order amount for a user inside a resolver function?
1...191192193...637Latest