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

    ervindraganovic

    11/06/2018, 2:55 PM
    Guys, quick question to the data model: Is it possible to set a URL as default value i.e.: image: String! @default(value: "

    https://test.com/img1.png▾

    ")
  • h

    halborg

    11/06/2018, 3:12 PM
    Right now I have defined all my DB models in separate files, and pass them all to Prisma in
    prisma.yml
    like this:
    Copy code
    datamodel:
    - model/user.graphql
    - model/post.graphql
    - model/comment.graphql
    ...
    This becomes quite long, and also requires for the developer to remember to add the new models to this list, so I was wondering if there’s a way to create an
    index.graphql
    files that imports all of the models in the folder automatically?
  • p

    Paul Perry

    11/06/2018, 3:18 PM
    Hi everyone - WesBos/Lydia are my reason for being here - the course from the former, the invite from the latter 🙂
    👋 7
    e
    • 2
    • 1
  • t

    Taro Kawada

    11/06/2018, 3:49 PM
    Hey guys I’m Taro from Tokyo. Same as Paul, I’m here because of Wes!
    👋 5
    e
    p
    • 3
    • 2
  • c

    chrisbull

    11/06/2018, 6:56 PM
    Hey --- is there a way to run a prisma server via AWS Lambda/Serverless? And I’m not talking about graphql-yoga… i’m talking about the server that is the middle layer (currently a docker-compose instance) between yoga and the postgres database.
  • c

    chrisbull

    11/06/2018, 7:09 PM
    Also can someone please 🙏🙏🙏🙏🙏 explain to me how it is expected to take a prisma architecture to production? Ive been trying to get this to work for about 3 months now. I’m exceptionally familiar now with prisma server, graphql-cli, prisma-client, and now graphqlgen… but I have a client whom I’m building their app, and I can’t figure out, nor can I find docs on how to go from a local docker-compose dev instance to actual production level architecture (like on AWS). I’ve tried using the
    graphql-yoga lambda-typescript
    example, the
    graphql create
    cli flow. I’ve even tried Apex Up and Now… but why do I have to use them, and pay for their 3rd party services? I’ve been able to get Prisma-client working up on serverless… but not working, as I then have to point to a prisma server (that currently doesn’t exist, unless I use docker)…. What am I missing? Thanks!
    y
    • 2
    • 3
  • h

    Hasen

    11/06/2018, 7:43 PM
    Hello all, I'm having an issue with a graphql-yoga api server if this is the right place to ask. I am trying to turn off playground, i use the option for the server start function. It works locally and in a local run container that I am actually pushing to AWS, but in ECS when the app loads, playground is still loading up. There is no cloudfront cache in front of this endpoint. I'm stumped as to why it would work in local container and not when deployed in ECS. If anyone has run into this please let me know.
  • c

    callan

    11/06/2018, 8:04 PM
    Hey guys, I'm having difficulty using a *Connection query with prisma-client (after switching from prisma-binding). When I was using prisma-binding, my query worked fine, but now i'm being told my *Connection query must have a sub-selection. I'll post details in a thread
    s
    • 2
    • 18
  • c

    Chris H

    11/06/2018, 8:17 PM
    This is pretty big news: https://www.linuxfoundation.org/press-release/2018/11/intent_to_form_graphql/
    😮 1
  • p

    pedro

    11/06/2018, 11:13 PM
    Hi everyone, I’m running same query on a same DB, any idea why they backend query returns undefined?
    s
    h
    • 3
    • 5
  • p

    pedro

    11/06/2018, 11:14 PM
  • l

    Luke

    11/07/2018, 3:22 AM
    Has anyone integrated auth0
  • l

    Luke

    11/07/2018, 3:22 AM
    with prisma ?
  • c

    CCBCodeMonkey

    11/07/2018, 3:45 AM
    is it possible to do an update single record mutation with a where based on multiple fields?
  • c

    CCBCodeMonkey

    11/07/2018, 3:46 AM
    @Luke I have integrated auth0
  • c

    CCBCodeMonkey

    11/07/2018, 3:46 AM
    with prisma
  • l

    Luke

    11/07/2018, 3:46 AM
    @CCBCodeMonkey do you have a code example you can share of that ?
  • c

    CCBCodeMonkey

    11/07/2018, 3:48 AM
    I worked off this example
  • c

    CCBCodeMonkey

    11/07/2018, 3:48 AM
    https://github.com/LawJolla/prisma-auth0-example
  • c

    CCBCodeMonkey

    11/07/2018, 3:49 AM
    not being able to do an update on a single record with a where based on multiple things, really sucks
  • c

    CCBCodeMonkey

    11/07/2018, 3:49 AM
    I want to update a post where the id = x and currentUser isOwnerOfPost
  • l

    Luke

    11/07/2018, 3:49 AM
    are you referring to the example above?
  • c

    CCBCodeMonkey

    11/07/2018, 3:49 AM
    no
  • c

    CCBCodeMonkey

    11/07/2018, 3:50 AM
    sorry, unrelated to that
  • l

    Luke

    11/07/2018, 3:50 AM
    okay cool
  • c

    CCBCodeMonkey

    11/07/2018, 3:50 AM
    😛
  • l

    Luke

    11/07/2018, 3:53 AM
    @CCBCodeMonkey Thanks!
  • c

    CCBCodeMonkey

    11/07/2018, 3:54 AM
    no prob
  • c

    CCBCodeMonkey

    11/07/2018, 3:55 AM
    @Luke just to elaborate a bit, all of the auth0 logic is in the graphql-yoga layer
  • c

    CCBCodeMonkey

    11/07/2018, 3:55 AM
    the only thing you really change with prisma is you need to update the datamodel to store the auth0 fields on your user
1...150151152...637Latest