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

    alex_ye

    02/11/2017, 12:45 PM
    Hi, guys. I noticed that there is a redundancy in relation mutation properties: take a look
  • a

    alex_ye

    02/11/2017, 12:45 PM
  • a

    alex_ye

    02/11/2017, 12:46 PM
    classroomsClassroomId - am I doing something wrong?
    n
    • 2
    • 12
  • w

    wallslide

    02/11/2017, 1:28 PM
    One of the benefits of graphql is the ability to unify several APIs under one namespace. With graphcool you can query data stored in the underlying built-in database, and use mutation callbacks to notify other services of changes to the data. But I don't see the ability to have parts of the graphql namespace rely on external data sources. That would be useful functionality. edit: Ahh I found out its already on the roadmap https://github.com/graphcool/feature-requests/issues/40
  • w

    wallslide

    02/11/2017, 1:42 PM
    Lots of good documentation on the site. Was just reading https://www.graph.cool/docs/tutorials/stripe-payments-with-mutation-callbacks-using-micro-and-now-soiyaquah7 . Permission queries look really useful.
    👍 4
  • w

    wallslide

    02/11/2017, 2:17 PM
    In this documentation https://www.graph.cool/docs/tutorials/stripe-payments-with-mutation-callbacks-using-micro-and-now-soiyaquah7 I see that the microservice can return errors to graphcool like this
    Copy code
    send(res, 400, { error: `Customer ${customerId} could not be charged` })
  • w

    wallslide

    02/11/2017, 2:18 PM
    Are those errors surfaced somewhere?
    n
    • 2
    • 1
  • m

    mulyoved

    02/11/2017, 5:02 PM
    using Lokka client.mutate() what seem to valid command as work fine in playground using lokka I get back answer OK 200 but null answer, this same code work earlier, I simplified it to simple jest test but still not sure why I don't get the id back this is the command
    Copy code
    let cmd = `{
          createDish(
            name: "Test"
          ) {
          id
        }`;
    any known problem? any suggested way to debug this?
    n
    • 2
    • 18
  • m

    mulyoved

    02/11/2017, 5:03 PM
    this is the test minus setup
    Copy code
    it('upload-data-to-graphcool', (done) => {
        let cmd = `{
          createDish(
            name: "Test"
          ) {
          id
        }`;
    
        console.log(cmd);
        client.mutate(cmd)
          .then((answer) => {
    
            console.log(answer);
            expect(answer).toBeTruthy();
            done();
          })
          .catch((err) => {
            console.error(err.stack);
            done(err);
        })
      })
  • m

    mulyoved

    02/11/2017, 5:11 PM
  • m

    mruzekw

    02/11/2017, 7:22 PM
    Hello, I’m trying to create a user via auth0, but I keep getting the following error:
    Copy code
    {
      "data": null,
      "errors": [
        {
          "message": "Unknown argument 'email' on field 'createUser' of type 'Mutation'. (line 2, column 71):\n  createUser(authProvider: {auth0: {idToken: $idToken}}, name: $name, email: $email) {\n                                                                      ^",
          "locations": [
            {
              "line": 2,
              "column": 71
            }
          ]
        }
      ]
    }
  • m

    mruzekw

    02/11/2017, 7:23 PM
    My User model does have
    email
    as a field, so I’m not sure what the issue is
    n
    • 2
    • 18
  • m

    mruzekw

    02/11/2017, 8:37 PM
    I’m getting the following error when trying to set a default value for an ENUM (roles)
    Copy code
    The specified default value '["USER"]' is not a valid Enum Value for this field
  • s

    sorenbs

    02/11/2017, 8:40 PM
    Hi @mruzekw We currently don’t support default values for enum lists. This is a known limitation that we are fixing in the coming weeks.
  • m

    mruzekw

    02/11/2017, 8:41 PM
    Okay, sounds good. Thanks!
  • t

    tim2

    02/12/2017, 9:12 AM
    @zhech, @dgmills914, @rameshsyn Welcome on board 🚀
  • m

    mulyoved

    02/12/2017, 11:39 AM
    question about algolia enabled integration, put apikey and such add index + query -> GC say 15 records will be effected which is correct problem I don't see the index in Algolia
  • u

    user

    02/12/2017, 11:43 AM
    @nilan commented on @mulyoved’s file

    https://prisma.slack.com/files/U448J9R1A/F43KDHSC8/2-12-2017_1-36-25_pm.png▾

    : could you PM me your project endpoint?
  • u

    user

    02/12/2017, 11:47 AM
    @nilan commented on @mulyoved’s file

    https://prisma.slack.com/files/U448J9R1A/F43KDHSC8/2-12-2017_1-36-25_pm.png▾

    : ahh
  • u

    user

    02/12/2017, 11:48 AM
    @nilan commented on @mulyoved’s file

    https://prisma.slack.com/files/U448J9R1A/F43KDHSC8/2-12-2017_1-36-25_pm.png▾

    : can you check again?
  • m

    mulyoved

    02/12/2017, 12:06 PM
    same results, refresh both, edited the query to force refresh, still no index in Algolia
  • u

    user

    02/12/2017, 12:08 PM
    @nilan commented on @mulyoved’s file

    https://prisma.slack.com/files/U448J9R1A/F43KDHSC8/2-12-2017_1-36-25_pm.png▾

    : Can you check in the integration tab, your integration should be enabled now. Was a bug in the frontend, we're deploying a fix soon 🙂 Thanks!
  • m

    mulyoved

    02/12/2017, 12:12 PM
    work now, frontend show enabled and index created 👍
    👍 1
  • t

    thomaslove

    02/12/2017, 3:48 PM
    I’ve created an attribute on a schema (”name”) but it’s not showing up as an argument I can query from the playground, I can only query by ID. Have I missed something really obvious?
    n
    • 2
    • 3
  • n

    nilan

    02/12/2017, 3:49 PM
    Hey @poojan and @mikeroelens 🙂 Welcome to our Slack community 👋
    m
    • 2
    • 2
  • t

    thomaslove

    02/12/2017, 3:50 PM
    I’m getting issues with using learnapollo.com, I think you guys made it right?
    n
    • 2
    • 20
  • a

    anthony_renard

    02/12/2017, 5:18 PM
    Hello everybody. I'm looking the way to handle password lost ? Somebody can help me ?
    n
    • 2
    • 17
  • v

    vinspee

    02/12/2017, 5:55 PM
    modeling question: I have a
    Question
    enitity which has an
    asker
    with a
    User
    type, and
    voters
    with a
    [User]
    type. I’d like the “createQuestion” mutation to create the entity, assign a user as the
    asker
    , and add that same user to the
    voters
    array. How can I do this?
    n
    • 2
    • 44
  • m

    mulyoved

    02/12/2017, 7:53 PM
  • u

    user

    02/12/2017, 7:54 PM
    @nilan commented on @mulyoved’s file

    https://prisma.slack.com/files/U448J9R1A/F43MUJD6V/2-12-2017_9-52-09_pm.png▾

    : looks like you're passing variable
    id: null
1...103104105...637Latest