https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# prisma-whats-new
  • t

    TroyZ

    03/24/2018, 2:04 AM
    Hi, quick question, I hope… If I wanted to use a local cluster, it creates 2 docker containers, the graphql/prisma container and the MySQL container … I was curious if we wanted to deploy this ourselves, can you do a local config with an AWS Aurora DB rather than a containerized MySQL instance?
  • s

    stton

    03/24/2018, 3:38 AM
    Loading the playground throwing an “internal server error”
  • s

    stton

    03/24/2018, 3:39 AM
    on load
  • r

    Robby Emmert

    03/24/2018, 4:49 AM
    Can anyone tell me what the proper way to rename a relation is?
  • r

    Robby Emmert

    03/24/2018, 4:50 AM
    For example:
    Copy code
    type User @model {
        id: ID! @unique
        fullName: String!
        email: String! @unique
        password: String!
        createdAt: DateTime!
        updatedAt: DateTime!
        contacts: [Contact!]! @relation(name:"AssignedTo")
        createdContacts: [Contact!]! @relation(name:"CreatedBy")
    }
    
    # Contacts
    
    type Contact @model {
        id: ID! @unique
        fullName: String!
        phone: String @unique
        email: String @unique
        assignedTo: User @relation(name:"AssignedTo")
        createdBy: User! @relation(name:"CreatedBy")
    }
    I want to rename AssignedTo to UserAssignedTo and CreatedBy to UserCreatedBy
  • j

    Jonathan

    03/24/2018, 5:03 AM
    @ryan When I remove the variables from the mutation, then I get this error.
  • u

    user

    03/24/2018, 5:04 AM
    @stton commented on @Jonathan’s file

    https://prisma.slack.com/files/U9HP6LZ18/F9UTTGFLZ/screen_shot_2018-03-24_at_12.00.09_am.png▾

    : remove the parenthesis too if no vars
  • r

    Robby Emmert

    03/24/2018, 5:08 AM
    I followed instructions in the docs to rename relations. I’m getting an error instead:
    Copy code
    ERROR: There is a relation ambiguity during the migration. Please first name the old relation on your schema. The ambiguity is on a relation between Contact and User.
  • r

    Robby Emmert

    03/24/2018, 5:08 AM
    Any ideas?
  • j

    Jonathan

    03/24/2018, 5:18 AM
    @stton Okay, if I remove the parenthesis it works fine in the playground, but I still cannot get it to work inside the update function: methods: { updatePerson () { this.$apollo.mutate({ mutation: UPDATE_PERSON_MUTATION, id: 'cjf4g99x7f3ak0124dxjqg7pc', displayName: 'Test' }) .catch((error) => { console.error(error) }) } } Any ideas?
    d
    • 2
    • 1
  • j

    Jonathan

    03/24/2018, 5:20 AM
    Nm, I figured it out. I was missing variables: { } around the variables.
  • m

    Moritz

    03/24/2018, 10:13 AM
    Hi, is anyone aware of a cool unit testing framwork for graphql apis? So far I have only used sets of playground mutations... I would like to write some unit tests for my graphql resolvers.
    d
    • 2
    • 1
  • p

    playra

    03/24/2018, 10:45 AM
    Why is my schema empty after the deploy
    NO SCHEMA AVAILABLE
    ? https://eu1.prisma.sh/public-crystalhawk-293
  • p

    playra

    03/24/2018, 10:45 AM
    message has been deleted
  • d

    Daniel K.

    03/24/2018, 10:46 AM
    check your url, it's not the same as in a terminal
  • p

    Peter Albert

    03/24/2018, 11:04 AM
    Hi! Short noob question regarding a GraphCool query. If I have a simple schema like:
    Copy code
    type Author @model { 
      id: ID! @isUnique 
      posts: [Post!]!  @relation(name: "AuthorOfPost")
    }
    type Post @model {
      id: ID! @isUnique
      author: Author @relation(name: "AuthorOfPost")
    }
    How can I query all Posts that do not have an author? Unfortunately, I cannot find something in the
    authorFilter
    like
    id_is_null
    . Thanks
    k
    m
    • 3
    • 6
  • p

    piscis

    03/24/2018, 11:27 AM
    Hi Guy’s I have a quick question about the prisma database deployment. In one of the examples I see that the mysql 5.7 image and a custom SQL Mode is used to bootstrap the Node. Would it be possible to bootstrap it with the default SQLMode or use MariaDB? Why are there so mutch adjustments for the SQL_MODE?
    • 1
    • 1
  • d

    davidyoung

    03/24/2018, 12:38 PM
    How can you stop queries firing from the client side when it's a optimistic ui (aka -1) through a graphql HOC query?
    d
    • 2
    • 1
  • d

    davidyoung

    03/24/2018, 12:39 PM
    I know I can wait to mount them until the ID !== -1, but that kind of destroys the purpose of optimistic UI.
  • d

    davidyoung

    03/24/2018, 12:39 PM
    I was thinking about handling it on the serverside resolvers, aka check ID, if it's equal to -1, just return an empty obj or whatever, but it feels hacky.
  • d

    davidyoung

    03/24/2018, 12:39 PM
    If anyone has any suggestions/what they do, that would be fantastic
  • j

    jamiehalvorson

    03/24/2018, 1:17 PM
    Hey all, does anybody have any pointers about dealing with changing endpoints in a production application? For example, if for some reason I need to move from my own setup to Prisma cloud (or visa versa) and I have an application deployed to the app store how would I update the URL without redeploying the application? since the URLs are passed as environment variables and are already coded in the application. I read somewhere that you could get your application to hit an endpoint that then contains all of that information, and then all you need to do is update that one endpoint but I’m not quite sure how that’d work/if that’s the best or only option. On a related note, it might be cool if we could use our own urls as part of prisma cloud but I think that’s probably a slightly different coversation or one that should happen in github.
    d
    n
    • 3
    • 3
  • s

    senorcodecat

    03/24/2018, 2:10 PM
    Anyone using a chat client/API for doing video/audio/chat in their apps? Looking for a good service (been checking out Pusher, PubNub, and SendBird)
  • l

    logan

    03/24/2018, 3:10 PM
    Anyone getting 503's with Prisma Cloud?
    ✔️ 1
  • s

    sebstr

    03/24/2018, 5:04 PM
    How can I set prisma to create MySQL DB with another coallation? I need mysql to be able to see a differencce between åäö and ao.. Been tinkering for hours now ;s
    d
    n
    • 3
    • 2
  • m

    Michael Jones

    03/24/2018, 7:21 PM
    Hello, I am really getting into Prisma now and how it works. For the
    application layer
    , can that be hosted through the Prisma Cloud?
    h
    r
    +2
    • 5
    • 30
  • d

    dfcarpenter

    03/24/2018, 9:28 PM
    Does anyone know if its possible to use apollo-cache-control and apollo-persisted-queries without apollo engine?
    n
    • 2
    • 1
  • s

    sajmil

    03/24/2018, 9:43 PM
    graphcool very slow with simple api right now?
    👍 1
  • h

    horia.ancas

    03/25/2018, 9:41 AM
    hey guys, any idea why this hangs?
    Copy code
    Changes:
    
      User (Type)
      ~ Updated field `email`. It became required.
      ~ Updated field `password`. It became required.
    
    Applying changes (1/2) ⣻
    h
    d
    +2
    • 5
    • 9
  • s

    spences10

    03/25/2018, 1:37 PM
    So, I just followed this guide: https://blog.graph.cool/deploying-graphql-servers-with-zeit-now-85f4757b79a7
    d
    • 2
    • 12
1...619620621...637Latest