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

    praneybehl

    08/27/2016, 2:48 PM
    I guess its better to go with scaphold.io where people actually do reply thanks though.
  • s

    schickling

    08/27/2016, 3:01 PM
    Hey @praneybehl and @iki! Sorry for the delay! We're currently getting a lot of requests and work on rolling out a new version for the next batch of users of the early access program. We'll be in touch very soon!
  • p

    praneybehl

    08/29/2016, 3:13 AM
    schickling just replied to your pm thanks
  • g

    gajus

    08/31/2016, 6:33 PM
    General technical question
  • g

    gajus

    08/31/2016, 6:33 PM
    GraphQL does not seem to support destructuring of types, does it not?
  • g

    gajus

    08/31/2016, 6:33 PM
    e.g.
    Copy code
    createBlog (...CreateBlog): Blog
  • g

    gajus

    08/31/2016, 6:34 PM
    otherwise I end up with:
    Copy code
    createBlog (blog: CreateBlog): Blog
    which requires that I make queries this way:
    Copy code
    createBlog({
      blog: {
        name: "foo"
      }
    })
  • g

    gajus

    08/31/2016, 6:34 PM
    instead of:
    Copy code
    createBlog(name: "foo")
  • n

    nilan

    08/31/2016, 6:36 PM
    Copy code
    createBlog(name: "foo")
    is exactly the way it works. have you checked out the available mutations and queries in the GraphiQL playground?
  • n

    nilan

    08/31/2016, 6:38 PM
    btw, which of the two versions you suggested is actually used in the schema is the responsibility of the server. as far as I know it is not part of the GraphQL spec
  • g

    gajus

    08/31/2016, 6:39 PM
    @nilan You misunderstood me.
    Copy code
    createBlog (...CreateBlog): Blog
    is throwing syntax error.
  • g

    gajus

    08/31/2016, 6:39 PM
    I am asking if there is a syntax to achieve this.
  • n

    nilan

    08/31/2016, 6:42 PM
    ah, gotcha. well, I am not aware of a GraphQL client for JS that behaves like you wish. which client are you currently using?
  • g

    gajus

    08/31/2016, 6:42 PM
    graphql-js
  • g

    gajus

    08/31/2016, 6:43 PM
    This is not supposed to be client specific. I am asking if the language itself defines an eqv. syntax.
  • g

    gajus

    08/31/2016, 6:44 PM
    https://github.com/facebook/graphql/issues/208
  • g

    gajus

    08/31/2016, 6:44 PM
    I have asked the question here.
  • n

    nilan

    08/31/2016, 6:50 PM
    oh, ok. I believe the spec is pretty clear on the format of GraphQL queries and mutations. So I would guess that the answer to the question in the issue title is 'no'. However, I think it could be a nice feature of a specific GraphQL client, if it would support object destructuring.
  • g

    gajus

    08/31/2016, 6:51 PM
    a specific client is not supposed to augment the graphql language spec
  • n

    nilan

    08/31/2016, 6:56 PM
    if you want to express that all the properties of the user type are required for this mutation, you can specify all of them separately as required arguments. then you would be able to get rid of the outer user field
  • n

    nilan

    08/31/2016, 7:00 PM
    oh, now I see where I was confused. I thought you want to call the createUser mutation with a user object as parameter, and that would produce the error. but you get the error when defining the mutation. sorry for my confusion!
  • g

    gajus

    08/31/2016, 7:01 PM
    yup
  • x

    xerc

    09/02/2016, 8:43 AM
    change Name & E-Mail @ Profile
  • x

    xerc

    09/02/2016, 8:43 AM
    --- Name
  • s

    schickling

    09/02/2016, 8:45 AM
    Thanks @xerc. We're already on it!
  • w

    wakatime

    09/02/2016, 8:57 AM
    wow, you guys have great support!
    simple smile 1
  • g

    gerardsans

    09/02/2016, 1:07 PM
    Hey there! Join us at this webinar w Kamil Kisiela, a team member of Apollo Stack next week http://www.meetup.com/AngularZone/events/233444689
  • o

    orlando

    09/10/2016, 3:30 PM
    I wanted to try the https://github.com/graphcool-examples/react-relay-todo-example but I am always getting this error. Any help? Uncaught Error: GraphQL validation error ``Cannot query field "viewer" on type "Query".`` in file
    /Users/dev/Documents/code/react-relay-todo-example/src/queries/ViewerQueries.js
    . Try updating your GraphQL schema if an argument/field/type was recently added. Steps I did: Cloning the git repo. Adding my project id to the package.json and to the src/app.js. In my graph.cool dashboard I have a ToDo model with complete and text as attributes
  • o

    orlando

    09/10/2016, 3:30 PM
    I also tried the instagram example before but faced the same error message (I created a Post model for that)
  • s

    schickling

    09/10/2016, 3:32 PM
    @orlando are you using the Simple or Relay endpoint?
1...121314...637Latest