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

    lewisblackwood

    05/21/2018, 2:37 PM
    👋 does anyone know why a Prisma mutation might not set a relation on both nodes? I have a simple one-to-one between two types:
    Endpoint
    and
    Organisation
    . When I create a new endpoint and connect it to an organisation, I can see the relation to the corresponding organisation on the endpoint. However, when I retrieve the organisation, it does not have an endpoint connected to it. I have plenty of other similar relations with different types and haven't seen this behaviour for those. Any ideas what might be the cause here?
    v
    h
    z
    • 4
    • 8
  • r

    ryannealmes

    05/21/2018, 3:04 PM
    does anyone know how one can see the internals of the prisma image? it’s a little concerning to our team we are spinning up containers for prisma and we can’t see what the underlying image is. Maybe I am missing something and there is a dockerfile sitting somewhere?
    n
    • 2
    • 2
  • p

    picosam

    05/21/2018, 4:31 PM
    Hello all, I’m still wondering about that error I’m getting when trying to use yarn workspaces. If anyone has the time, may you please take a look here: https://www.prisma.io/forum/t/prisma-graphql-yoga-with-yarn-workspaces
  • m

    manuel.dicristo

    05/21/2018, 8:56 PM
    Hey there! I'm running an
    upsert
    query and in the update option every field updates correctly except for a
    disconnect
    that I have in there. The relation is still there after I run the query, it disconnects only when I run a regular
    update
    instead of the
    upsert
    . Any thoughts?
    • 1
    • 2
  • h

    hez

    05/21/2018, 10:12 PM
    hello all -- looking at deploying to fargate using the cloud formation template found here: https://github.com/prismagraphql/prisma-templates but running into an error... the stack built successfully, but the external URL is just giving me a 503. Consequently, any attempt to deploy to that stack (predictably) fails when it hits that 503
  • h

    hez

    05/21/2018, 10:12 PM
    Any ideas?
    n
    • 2
    • 29
  • s

    Sam Jackson

    05/22/2018, 3:40 AM
    Regarding deployment—Prisma docs take us through creating a docker image with MySQL/Postgres and the Prisma service. Can this container be deployed on any platform? Is it "best practice" to deploy these two services in the same container?
    n
    • 2
    • 5
  • t

    TangoJuliett

    05/22/2018, 4:04 AM
    I have a generic GraphQL question, I hope I don’t anger anyone by asking. I’m getting errors about non-nullable fields when the parent field is null and nullable… I feel like it shouldn’t be complaining about non-nullable fields on a nested model if the parent is null and nullable. Thoughts?
    n
    • 2
    • 3
  • p

    praveenweb

    05/22/2018, 4:19 AM
    Hey there! when i create a datamodel with relations (for ex: Author has id, name and Article has id, title, content, author_id: Author), they are not created as foreign keys in the underlying MySQL database. It creates a new mapping table. Is this a known issue/workflow or am i missing something?
    j
    n
    • 3
    • 4
  • a

    acasanova

    05/22/2018, 6:29 AM
    is there any problem with prisma servers right now? Impossible to install prisma and use smoothly the cloud.
    n
    • 2
    • 2
  • h

    halborg

    05/22/2018, 6:35 AM
    Has anyone seen a blog post comparing Apex Up and Zeit Now, or perhaps blog posts about using either in production at scale? I’m having a hard time choosing between them. I’m inclined towards Apex Up + Lambda for my GQL+Prisma project, but my issue with it is that we have to jump through some hoops to support subscriptions. Zeit Now seems to support that, but to me it seems to be a bit of a ‘magic black box’ with much less control over deployments
    r
    s
    +2
    • 5
    • 21
  • c

    carnun

    05/22/2018, 2:05 PM
    Hi all, I’m trying to get a local graphcool service running so that developers can dev and test against it. Unfortunately a part of this is using Auth0 as an auth provider (which we have set up through console.graph.cool). I’ve been trying to find some code across the web that will help me with this but without luck. Basically I want to implement the following mutation as a function and run it through
    graphcool deploy
    with a local config, but
    {authProvider: }
    doesn’t exist:
    Copy code
    GraphQL error: Unknown argument 'authProvider' on field 'createUser' of type 'Mutation'
    This is the mutation definition:
    Copy code
    mutation CreateUser($idToken: String!, $email: String!) {
            createUser(authProvider: {auth0: {idToken: $idToken}}, email: $email) {
                id
            }
        }
  • k

    Kyle Gammon

    05/22/2018, 3:04 PM
    Hi all, does anyone have any guidance on what values we should escape when calling a mutation via the API? I noticed some of our mutations are failing with the error "Syntax error whilse parsing GraphQL query. Invalid input...". Some of these mutations contain characters such as € which I suspect may be failing the parse? Are there any general rules around this?
    n
    • 2
    • 6
  • s

    Sam Jackson

    05/22/2018, 3:16 PM
    This is more of a general GraphQL question I think—is there a way of querying distinct values? Say my query returns [A, B, B, C, C, C], can I just get [A, B, C] or do I just need to turn the results into a set on the frontend?
    w
    l
    • 3
    • 5
  • l

    lewisblackwood

    05/22/2018, 3:43 PM
    Has anyone successfully run a Prisma cluster in Circle CI 2.0? I want to clone my Yoga/Prisma app, and run our E2E tests against a service in CI. In my Circle
    config.yml
    , I'm running
    docker-compose up -d
    which begins building. It then seems to hang on:
    Creating repo_prisma-database_1 ...
    . When
    prisma deploy
    runs in a following step, the error is:
    Could not connect to cluster local. Please use docker-compose up -d to start your local Prisma cluster.
    Are there any example
    config.yml
    files showing how to get this running?
    s
    • 2
    • 2
  • s

    Sam Hulick

    05/22/2018, 3:52 PM
    howdy folks!
  • s

    Sam Hulick

    05/22/2018, 3:53 PM
    our team is looking at how we can integrate Prisma into our planned stack (Vue + Apollo, AWS AppSync, AWS RDS). we'd like to keep Prisma serverless if at all possible.. and if it makes sense to do so. any advice on this?
    m
    w
    s
    • 4
    • 58
  • s

    Sam Hulick

    05/22/2018, 4:01 PM
    ☝️ the other team member 😉
  • w

    willvincent

    05/22/2018, 4:01 PM
    👋
    👋 1
  • s

    Sam Hulick

    05/22/2018, 4:22 PM
    IMO there really ought to be an AWS tutorial in the deployment section: https://www.prisma.io/docs/tutorials/deploy-prisma-servers/digital-ocean-(docker-machine)-texoo9aemu
    👍 3
  • s

    Sam Hulick

    05/22/2018, 4:22 PM
    whether it's via EC2 or Fargate
    n
    • 2
    • 9
  • t

    terion

    05/22/2018, 4:28 PM
    Had anyone problems with migrations? https://github.com/prismagraphql/prisma/issues/2490
    w
    • 2
    • 4
  • e

    ed

    05/22/2018, 4:55 PM
    is there a bug with serverside subscriptions? I have this code
    Copy code
    subscription serverSideCommentsSubscription {
      Comment(filter: {
        mutation_in: [CREATED]
      }){
        node {
          id
          event {
            id
            host {
              id
            }
            attendees {
              id
            }
          }
          user {
            id
            name
            picture
          }
        }
      }
    }
    But it doesnt fire on server, if I execute it in the graphcool playground it detects the changes on
    Comment
    any Ideas? thanks in advance.
  • e

    ed

    05/22/2018, 4:56 PM
    I should not do this, but @nilan I just want to know if there is a current issue with the serverside subscriptions? thanks
    n
    • 2
    • 3
  • s

    Sam Jackson

    05/22/2018, 5:53 PM
    I'd like to hear about how you all are dealing with file upload with Prisma/GQL in general. @medelman
    s
    n
    +2
    • 5
    • 13
  • t

    terion

    05/22/2018, 6:11 PM
    I'm also with file uploads. Examples in yoga look great, but IRL there are some not very good things in part of inputs. Is there a better way, than like this? https://www.prisma.io/forum/t/proper-datamodel-for-file-uploads/3569
    m
    • 2
    • 13
  • t

    terion

    05/22/2018, 6:27 PM
    Do Prisma generate reusable fragments somewhere?
  • s

    Sam Hulick

    05/22/2018, 7:34 PM
    we're having issues with Prisma on Fargate. we followed the tutorial and we have an endpoint URL. it works half the time. sometimes we get a playground, and sometimes it times out. in the EC2 load balancer targets, I see "draining" for one of the instances before it vanishes. not sure what's going on
  • s

    Sam Hulick

    05/22/2018, 7:35 PM
    we're at the
    prisma deploy
    step
  • s

    Sam Hulick

    05/22/2018, 7:38 PM
    also, we're seeing
    "message": "Project not found: 'default@default'"
    in the Playground. not sure where we were supposed to define that project
1...363738...637Latest