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

    spences10

    08/09/2017, 1:46 PM
    Anyone here have experience in getting the RAN boilerplate working with GraphCool?
  • s

    spences10

    08/09/2017, 1:46 PM
    Specifically the user authentication?
  • s

    sascha

    08/09/2017, 2:34 PM
    Hi All, very excited about GraphQL and just started to go through the howtographql tutorials. We currently have a huge RESTful API layer in our company, and are now running some POCs to eventually replace it with GraphQL. It's going to be fun! 🙂
    🎉 3
    💯 1
    👌 1
  • j

    joeblack74

    08/09/2017, 2:56 PM
    Hi all, I was wondering if there is a way to schedule an automatic backup of the data of a Graphcool project? Directly from Graphcool, otherwise I could naturally just setup a crontask on a custom server and run a Graphcool query to fetch everything, but we wouldn't really be serverless anymore then.
    n
    • 2
    • 2
  • t

    takeshiamano

    08/09/2017, 3:19 PM
    extending on @joeblack74's question, what is the best strategy to sync schema between separate Graphcool instances?
    d
    n
    • 3
    • 5
  • t

    takeshiamano

    08/09/2017, 3:20 PM
    I'm using dev instance now but once when I want to push it to production what should I do to avoid typing the changes made to dev instance all over again?
  • n

    notrab

    08/09/2017, 4:13 PM
    Does anyone have a link to an example of a Permission query that only lets users with the field
    admin
    set to true?
  • n

    notrab

    08/09/2017, 4:13 PM
    I’ve only seen the
    ROLE
    example
    n
    • 2
    • 3
  • m

    mwickett

    08/09/2017, 5:36 PM
    Anyone have a react date picker component that they really like? AirBnB’s looks awesome, but I think it’s overkill for what I need.
    d
    • 2
    • 2
  • m

    matthewhager

    08/09/2017, 6:52 PM
    If you were able to use a tool similar to Webflow (https://webflow.com/), but that built react components and then let you wire the UI you built directly to a Graphcool backend, would you use it? Also, what would be your concerns?
  • r

    robotofthefuture

    08/09/2017, 7:17 PM
    Has anyone ran into "Cannot read property 'projectId' of undefined" in their inline functions?
    s
    j
    • 3
    • 4
  • r

    robotofthefuture

    08/09/2017, 7:18 PM
    Oh, and the function I'm using makes no reference to a projectId...
  • o

    olaf

    08/09/2017, 7:19 PM
    Does anyone know how to get all relations for a field in previousValues in a subscription query? I have a Server side subscription function that is meant to create a notification when things change on a
    post
    , for that it needs to compare the new values against the old to specify what exactly changed. It works well for scalar fields, but having trouble with relations. (By the way, am aware that the function itself won’t trigger from a change in the relation, will address that with the Dummy field workaround) What I have now:
    Copy code
    subscription {
      Post(filter: {
        mutation_in: [CREATED, UPDATED, DELETED]
      }) {
        updatedFields
        node {
          id
          name
          admins {id}
        }
        previousValues {
          id
          name
          admins: id 
        }
      }
    }
    So far
    updatedFields
    will give all admins on the post, but
    previousValues
    doesn’t and will not accept the same format. It does give the id of 1 admin when formatted as above.
    n
    • 2
    • 3
  • d

    donald

    08/09/2017, 7:27 PM
    I'm currently working on a server side subscription, and I'm having trouble with
    graphcool-lib
    . I can't get even basic queries to return results. Am I doing something incorrect here?
    Copy code
    const fromEvent = require('graphcool-lib').fromEvent
    
    const getUser = function (api) {
    	const query = `
        query {
          allUsers {
            id
          }
        }
      `
    
      return api.request(query)
        .then(data => console.log(data))
    }
    
    module.exports = function (event) {
      const graphcool = fromEvent(event)
      const api = graphcool.api('simple/v1')
      
      return getUser(api)
        .then(data => console.log(data))
        .catch(err => console.log(err))
    }
  • w

    wesbos

    08/09/2017, 7:54 PM
    Hey folks - having trouble with server functions - they run fine locally and in the tester, but when hooked up for a pipeline, it just tells me there is an internal server error with no info
    n
    • 2
    • 2
  • d

    donald

    08/09/2017, 8:06 PM
    Also having errors with functions. I am unable to create or update any
  • w

    wesbos

    08/09/2017, 8:09 PM
    I can create them - what error are you getting?
  • d

    donald

    08/09/2017, 8:11 PM
    Just getting stuck on this loading screen when trying to create or update any functions
  • u

    user

    08/09/2017, 8:20 PM
    @agartha commented on @donald’s file

    https://prisma.slack.com/files/U5E4N8TGT/F6MHTSYP9/screen_shot_2017-08-09_at_3.09.40_pm.png▾

    : That usually indicates there's something wrong with your function (syntax) that causes the /create call to fail.
  • d

    donald

    08/09/2017, 8:26 PM
    Huh, yeah looks like that was the issue
  • m

    mel

    08/09/2017, 9:32 PM
    Quick Question: Is it bad practice to call an external API in the
    TRANSFORM_ARGUMENT
    step? When a user record is updated with a
    stripeToken
    field, I'd like to create a Stripe customer and add the customer id to the user update fields. I would do it in the
    PRE_WRITE
    step but I can't update the mutation fields.
    a
    • 2
    • 5
  • w

    wallslide

    08/09/2017, 9:42 PM
    anyone else have all of their mutations` signatures change (especially enum-based properties')?
    👍 2
    🚨 1
    🔥 1
    a
    d
    +4
    • 7
    • 38
  • d

    dtuite

    08/09/2017, 11:18 PM
    I seem to be able to create a DB record with a Json value which I then can’t edit, even using the graphcool web interface. I have a simple React form with a textarea where I can type in a string which looks like Json. I then send this to Graphcool via apollo. I’ve attached a screenshot of the variables I’m sending as they look in the Chrome Dev Tools. The request is accepted. (more in thread)
  • d

    dtuite

    08/09/2017, 11:20 PM
    (nvm thread. I can’t put another screenshot in a thread) When I view my Json filed in Graphcool, it looks like this:
  • n

    nilan

    08/09/2017, 11:20 PM
    hey @dtuite, this is a known issue and is documented here: https://github.com/graphcool/api-bugs/issues/222
    👍 1
  • n

    nilan

    08/09/2017, 11:20 PM
    a potential workaround is also mentioned in the issue report, let me know if that works for you
  • d

    dtuite

    08/09/2017, 11:21 PM
    thanks Nilan. Will experiment with that
  • d

    dtuite

    08/09/2017, 11:37 PM
    Haven’t actually tried yet but the workaround seems risky. My clients are mobile applications and I’d have to roll out a new release if they don’t handle the change to
    String
    well. I can test how they react tomorrow.
    n
    • 2
    • 4
  • d

    dtuite

    08/10/2017, 12:12 AM
    Second bug of the night? 😄 The “account” page is rendering the word “Account” and nothing else. Have tried both FF and Chrome.
  • u

    user

    08/10/2017, 12:33 AM
    @agartha commented on @dtuite’s file

    https://prisma.slack.com/files/U5K3L5Q20/F6KU94AG0/account.png▾

    : Seems broken yes 🙂
1...303304305...637Latest