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

    amore

    07/06/2017, 1:07 PM
    waiting for this feature too…
  • l

    lefevre

    07/06/2017, 2:48 PM
    Hey. I want to update our existing enums values to all caps (Ye, we didn’t set it up properly…), but I get met by a pop-up error, saying the enum is in use and I must setup a migration value, the enums are optional btw. How do I specify the migration values for each enums?
    n
    • 2
    • 1
  • b

    bobbyt

    07/06/2017, 4:16 PM
    Hi! I'm trying to add an enum field to one of my types but the Graphcool interface won't let me specify default/migration values. Here's my enum:
    Copy code
    enum Role {
      TEACHER
      CLIENT
    }
    and here is the field I am trying to add to my User type:
    roles: [Role!] @migrationValue(value: CLIENT) @defaultValue(value: CLIENT)
    however, Graphcool keeps returning an error saying "please supply a valid value"? Thanks.
    n
    • 2
    • 10
  • l

    lastmjs

    07/06/2017, 4:25 PM
    Is the Simple API down?
    n
    • 2
    • 5
  • l

    lastmjs

    07/06/2017, 4:26 PM
    Nevermind
  • b

    bmackley

    07/06/2017, 5:13 PM
    Help on adding a many-to-many edge? I want to add a concept to an assignment, and there is a many-to-many relationship on the nodes. In the playground it lets someone with admin privileges create the edge, but nobody else can. The permissions are completely open for CRUD on both nodes. Any ideas?
    n
    • 2
    • 3
  • d

    dan

    07/06/2017, 5:50 PM
    Hey, I am having some issues getting a Server Side Subscription Function to run. I'm just using the base example and it doesn't seem to ever invoke for any mutations.
    n
    • 2
    • 7
  • c

    claym

    07/06/2017, 6:34 PM
    i feel like an idiot for asking this, but how do you add data through the data browser?
  • d

    dan

    07/06/2017, 6:35 PM
    @claym there is a little "+ add new node " on the top left of the data browser
  • n

    nikolasburk

    07/06/2017, 6:35 PM
    simply click the top empty row and select a field where you can enter some data
    🙌 1
  • n

    nikolasburk

    07/06/2017, 6:35 PM
    hitting enter or the green checkmark button on the right will create the entry
  • c

    claym

    07/06/2017, 6:36 PM
    see, i am an idiot heh
    😡 1
    n
    • 2
    • 4
  • n

    nilan

    07/06/2017, 7:03 PM
    Hey everyone <!here|@here> 👋 The first badge of GraphQL-Europe videos is now available 🇪🇺 Watch them now at GraphQL Talks, a collection of all GraphQL videos. If you organize a GraphQL meetup or conference and want to see your recordings on GraphQL Talks, let us know 💯 https://graph.cool/blog/2017-07-06-graphql-talks-eevevoo1ae/
    📽️ 3
    🦜 8
    🎉 13
    graphql 4
    🚀 3
    ❤️ 2
  • m

    marco.luethy

    07/06/2017, 7:08 PM
    Great collection! Could use some more female speakers 😉
    💯 3
    s
    • 2
    • 1
  • c

    cbartram

    07/06/2017, 7:24 PM
    Hey im having some trouble running a mutation with react and apollo client. I should have everything setup correctly but it gives me a vague error and directs me here.
    cj4rhmly156jr0185p23q6vbj
  • c

    cbartram

    07/06/2017, 7:24 PM
    GraphQL error: Whoops. Looks like an internal server error. Please contact us in Slack (https://slack.graph.cool) and send us your Request ID: cj4stmsrulp8a0167x8r15ap8
  • c

    cbartram

    07/06/2017, 7:25 PM
    Copy code
    const insertGroup = gql`
        mutation createGroup($name: String!, $tile: [Int!]!, $isActive: Boolean!) {
            createGroup(name: $name, tile: $tile, isActive: $isActive) {
                id
                name
                tile
            }
        }`;
    
    export default graphql(insertGroup, {
        props: ({ ownProps, mutate }) => ({
            createGroup: ({ name, tile, isActive }) =>
                mutate({
                    variables: { name, tile, isActive },
                })
        })
    })(App)
    n
    • 2
    • 8
  • c

    cbartram

    07/06/2017, 7:26 PM
    and lastly this piece of code is whats causing the error am I doing this right?
    Copy code
    this.props.createGroup({ name: value.name, tile: value.tiles, isActive: value.active }).then((response) => {
                    console.log(response);
                }).catch((e) => {
                    console.error(e)
                });
  • s

    steven

    07/06/2017, 8:08 PM
    Hi curious what people are using to make sure their app runs smoothly when offline. And when they get a connection back can sync with GraphCool
    a
    • 2
    • 4
  • c

    ckelley

    07/06/2017, 8:42 PM
    Hey everyone, I'm hosting my webhooks on AWS Lambda behind an API gateway and I'd like to use CORS to restrict inbound requests so that they can only come from Graphcool. Has anyone else tried this?
    a
    s
    a
    • 4
    • 3
  • d

    dan

    07/07/2017, 12:02 AM
    Hey! I was wondering if there was a query that can be made to grab a random entry in the database. Thanks!
    a
    m
    • 3
    • 6
  • l

    lastmjs

    07/07/2017, 4:09 AM
    Is the Simple API open source or proprietary? Hypothetically, would graph.cool be alright with a competitor building a service that offered the Simple API?
    s
    • 2
    • 2
  • s

    sorenbs

    07/07/2017, 10:00 AM
    We will be launching a massive new GraphQL learning resource next week. It has been a month-long collaboration between the Graphcool team and prominent members of the community. Before the launch we are looking for 5 people willing to spend 2-3 hours going through a chapter and providing thorough feedback. Please send me a dm if you would be interested in helping us out over the weekend 🙂
    👍 1
    g
    • 2
    • 2
  • n

    nilan

    07/07/2017, 11:11 AM
    welcome @suhendra as the 3000th member of our Slack channel 🎉 🦜
    😂 1
    🙂 1
    🚀 1
    🎉 8
    💯 5
  • j

    joshjoe

    07/07/2017, 2:22 PM
    How do I create a user if that user also requires another type as part of it? Here is my scenario; I have a Type of People and a Type of User. I have a relation setup between the two where the other is required.
    n
    • 2
    • 20
  • t

    tarik

    07/07/2017, 3:02 PM
    Hello!🗣️
    n
    • 2
    • 1
  • t

    tarik

    07/07/2017, 3:04 PM
    nice channel 👍
    👍 2
  • p

    peterp

    07/07/2017, 4:54 PM
    hey folks, i’m getting some weird error when i post a ton of data
  • p

    peterp

    07/07/2017, 4:54 PM
    well, by ton i mean about 400 nested arrays ~300kb of data
    n
    • 2
    • 25
  • p

    peterp

    07/07/2017, 4:55 PM
    Copy code
    "message": "Whoops. Looks like an internal server error. Please contact us in Slack (<https://slack.graph.cool>) and send us your Request ID: cj4u3oj2df9yc0148b6sg70ij",
                        "requestId": "cj4u3oj2df9yc0148b6sg70ij",
                        "path": [
                            "createCalendar"
                        ],
                        "locations": [
                            {
                                "line": 3,
                                "column": 5
                            }
                        ]
1...259260261...637Latest