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

    user

    04/07/2017, 10:32 AM
    @sorenbs commented on @afgh’s file

    https://prisma.slack.com/files/U2Z3AS60H/F4W1DHSLA/screen_shot_2017-04-07_at_12.22.12.png▾

    : This is a limitation of the GraphQL specification. We have tried to influence it to allow a broader character set, but there are strong forces against it
  • a

    afgh

    04/07/2017, 10:47 AM
    By the way, I’m currently having an issue with subscriptions not pushing new data. Anyone else?
    s
    i
    d
    • 4
    • 27
  • a

    artyom

    04/07/2017, 12:32 PM
    oh happy days, such an awesome crew of people joining us!! Wave @robertw @mzgnr @loyolny @pascal @mxstbr @ieschalier @tcbyrd @afasorojoseph @jcheroske @nagarakesh4 @tjmehta @saurabh have fun with graphcool let us know how we can help!
    🖖 2
  • s

    stlbucket

    04/07/2017, 12:39 PM
    how would i calculate a variable during a mutation? is this even possible: mutation CreateNewQuote( $customerId: ID, $preparedByEmployeeId: ID, $preparedForCustomerContactId: ID, ) { createQuote( customerId: $customerId, quoteNumber: “NEED TO CALCULATE WITH A MUTATION CALLBACK”, employeeId: $preparedByEmployeeId, customerContactId: $preparedForCustomerContactId ) { id, quoteNumber } } i suppose i could create with quoteNumber: “TBD” or something, then mutation callback lambda could calculate, then front-end subscribes to updates on this quote and picks up the calculated value later. nested mutation of some sort?
  • a

    afasorojoseph

    04/07/2017, 12:50 PM
    I've been having trouble executing grphcool commands in the terminal even after installing it. The terminal reports that graphcool isn't a recognized command
    s
    • 2
    • 1
  • s

    sorenbs

    04/07/2017, 12:51 PM
    Hi @stlbucket It’s a common pattern to have a value that needs to be calculated by a mutation callback. Depending on your use case there are two approaches you can take. The simplest is to make the field optional and then let a mutation callback fill it in after the fact. If having the field optional is not acceptable you can have an input model without the field and a separate “real” model that is being populated by the mutation callback including the calculated field
    s
    • 2
    • 7
  • a

    amann

    04/07/2017, 1:35 PM
    Does anyone have a good solution for performing validation on a mutation that doesn't lie client side?
    s
    w
    • 3
    • 11
  • y

    yoamomonstruos

    04/07/2017, 2:00 PM
    Does anyone know if you can reference an interface as a list of objects with graphql-up? Such as:
    Copy code
    interface NodeBase {
      id: ID!
      title: String!
    }
    
    type Note implements NodeBase {
      id: ID!
      title: String!
      body: String!
    }
    
    type Link implements NodeBase {
      id: ID!
      title: String!
      url: String!
    }
    
    type Project {
      id: ID!
      things: [NodeBase]!
    }
    s
    • 2
    • 2
  • a

    artyom

    04/07/2017, 3:00 PM
    @manur @rphuber hola! graphcool welcomes you 🖖
  • r

    rphuber

    04/07/2017, 3:00 PM
    Hola. 🙏 thanks
    🙌 1
  • j

    jaminpie

    04/07/2017, 3:27 PM
    hey guys, with GC, can we build a real time chat app
  • j

    jaminpie

    04/07/2017, 3:27 PM
    ?
  • t

    tim2

    04/07/2017, 3:29 PM
    Hey @jaminpie yes you can! And this is actually a tutorial on how to do it: https://www.graph.cool/docs/tutorials/worldchat-subscriptions-example-ui0eizishe/
    🙌 2
  • a

    artyom

    04/07/2017, 3:32 PM
    @nachos 👋 enjoy your Friday with graphcool it’s a great way to start the weekend 😉
  • a

    artyom

    04/07/2017, 3:38 PM
    @dmitweb may you be welcomed as well 👋 graphcool
  • d

    dmitweb

    04/07/2017, 3:39 PM
    😊👍
  • g

    gopidon

    04/07/2017, 3:54 PM
    Guys, everythin okay with ur operations count logic. Mine is showin 0 for 2 days now in ky project billing section
  • m

    monkeybonkey

    04/07/2017, 5:03 PM
    hey guys - should I still check on https://github.com/graphcool/feature-requests/projects/1 to see the status of features like login reset api?
    n
    • 2
    • 7
  • a

    aryan

    04/07/2017, 5:29 PM
    Hey guys, if I have a collection of scores and want to sum the score for one user, do I do it on my react component? (using graph.cool for my data source)
    n
    • 2
    • 2
  • a

    artyom

    04/07/2017, 6:22 PM
    @davidc hello and welcome to graphcool 🎉
  • d

    davidc

    04/07/2017, 6:42 PM
    @artyom hi
  • r

    ragnorc

    04/07/2017, 8:10 PM
    Is it possible to subscribe to nested fields? I have a user type witha feed field which contains all the posts as relations and now I would like to subscribe to new posts being added as relations to the feed field😅
    h
    a
    n
    • 4
    • 6
  • h

    hvillain

    04/07/2017, 8:33 PM
    Has anyone ever tried GetStream? Currently working on my users feeds and notifications, I wonder how long subscribing to a Notification table would do the trick. I also tried to release a "top items" feed, based on current likes modulo item creation timestamp : not easy right now. What's considered the best practices on Graphcool right now? And in 6 months? A GetStream integration could be interesting, well maybe :)
    n
    • 2
    • 7
  • a

    adamibaker

    04/08/2017, 7:13 AM
    i'm having trouble creating (
    createUser
    ) and then accessing the newly created
    User
    object in my react-native and apollo + auth0 + graphcool app. this page (https://www.graph.cool/docs/reference/simple-api/user-authentication-eixu9osueb/#auth0-social-logins) says that like all mutations,
    createUser
    returns the newly created object. i'm using a mutation much like this:
    Copy code
    mutation {
      createUser(authProvider: {
        auth0: {
          idToken: "<idToken>"
        }
      }) {
        id
      }
    }
    i want the new object to be at
    this.props.data.user
    — that's the name of my usual query for logged-in users. for this new user case, it is returned in
    this.props.data.createUser
    which i understand is the name of the mutation. how do I
    createUser
    and then query/return the new user object as i ordinarily would (so that it is returned in
    this.props.user
    )?
    n
    • 2
    • 1
  • a

    adamibaker

    04/08/2017, 7:17 AM
    more generally, is there a very clear and consistent pattern to follow for auth0 login? i've seen a lot of different approaches and i'm finding it a bit confusing. in particular, auth0 authorization for existing users is easy and works well (it's easy to reason about) but it's murkier when it comes to creating a new user on the fly.
    n
    • 2
    • 1
  • h

    herdani

    04/08/2017, 8:12 AM
    Hi everyone, find out about graphcool and impressed so far! Tried to get started, created a new type, but can't find a way to add/edit fields in it ... the "data schema" interface says "soon editable" and doesn't look at all like the getting started video ... I suppose I'm missing something obvious ... can someone point me to the right direction ?
    n
    • 2
    • 3
  • l

    loelsonk

    04/08/2017, 9:14 AM
    Hi everyone, I have a problem with Auth0 token authentication. I used this function to authenticate
    auth0.WebAuth.client.login
    . Token I am receiving is not valid with Graphcool. It's 735 char long compared to 285 char long from
    auth0.WebAuth.redirect.loginWithCredentials
    function which works for me and I can successfuly authenticate to my App. I'd like to use a method which is not forcing my window to reload (
    auth0.WebAuth.redirect.loginWithCredentials
    does that for me).
    • 1
    • 1
  • h

    herdani

    04/08/2017, 10:57 AM
    I’m using React-Apollo. I have a mutation to create a record, with a field containing a ‘unique’ constraint. So when I try to add an existing one, I get an error back, which is fine. But it seems to be a string only (error is string, error.message too). How can I find the 3010 error code to know that the error is related to that unique constraint ? Tried error.code but is undefined
    n
    • 2
    • 2
  • a

    artyom

    04/08/2017, 1:17 PM
    @manoharpalem @aadimator @sakis @aryamaharta hello! enjoy your weekend with graphcool 👍
  • a

    artyom

    04/08/2017, 1:35 PM
    @arnaudschlupp 👋 hi there!
    a
    • 2
    • 2
1...146147148...637Latest