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

    geekodour

    06/24/2017, 8:53 PM
    I am using the free tire of graphcool for a hackathon, it requires updating a json object on each keystroke. will it be a good idea to send mutations on each keystore, later I will turn it into a subscription so that clients can see it in real time. or should I update graphcool data state when user hits save.
    a
    • 2
    • 1
  • n

    nreid

    06/25/2017, 12:03 AM
    Hey team - struggling to make Apollo parameterized queries work. Do I need to wrap the query in a name in order to define the type of the accepted variable?
  • n

    nreid

    06/25/2017, 12:03 AM
    const ProductQuery = gql` query GetProduct($productId: ID!) { product (id: $productId) { id name description}}`
    a
    n
    • 3
    • 13
  • n

    nreid

    06/25/2017, 12:04 AM
    Any documentation tips? I've looked at the Apollo examples, but they all focus more on Angular and React and I'm using Vue.
  • d

    dervos

    06/25/2017, 1:40 AM
    Quick question: Will the auth0 client public certificate work as the graphcool auth0 integration client secret? Or is only HS256 supported?
    n
    • 2
    • 2
  • k

    kevinbrown

    06/25/2017, 2:58 AM
    Hey guys, I'm building a financial application with Graph.cool, and I wanted to know more about how to control the underlying SQL transactions on Aurora. If I pass multiple mutations down in one single call, I know they're run serially, but are they all run in one transaction?
  • k

    kevinbrown

    06/25/2017, 2:58 AM
    Or, putting it another way, if I need to take money out of an account and put it in another account, how do I ensure that happens atomically?
    w
    n
    • 3
    • 21
  • d

    danielvdm

    06/25/2017, 10:03 AM
    whats the recommended way of getting facebook profile pics
    a
    • 2
    • 7
  • d

    danielvdm

    06/25/2017, 10:03 AM
    in an auth0 environment
  • g

    geekodour

    06/25/2017, 10:32 AM
    unable to mutate model with auth permission to create, the header has the token. but shows
    insufficient permissions
    any ide why?
  • g

    geekodour

    06/25/2017, 10:33 AM
    Copy code
    const EditorWithUserData = graphql(USER_QUERY,{ options: { fetchPolicy: 'network-only' } })(Editor);
    
    const EditorWithCreateMindmap = graphql(CREATE_MINDMAP,{
      props: ({ownProps, createMindMap}) => ({
        createMindMap: ({ name, graph }) => {
          return (
            createMindMap({
              variables: { name, graph }
            })
          )
        }
      }),
      name: 'createMindMap'
    })(EditorWithUserData);
  • g

    geekodour

    06/25/2017, 10:33 AM
    the HOCs 👆
  • g

    geekodour

    06/25/2017, 10:38 AM
    but it works when i remove auth permission to create.. so for some reason the user is not seen as authenticated by the graphcool backend
    n
    • 2
    • 6
  • p

    pdrummond

    06/25/2017, 11:14 AM
    Hi, if I add a simple READ permission query to only allow READS on "Issues" where
    open:true
    , then test it in GraphiQL, the data field in the response is NULL (and the error field contains
    {code:3008, message:"Invalid Permissions"}
    ) even though I definitely have open issues. I would expect to get errors for the fields that aren't "open" but the data field should contain the issues that are open right? Do I need to enable "partial responses for errors" or something in the react-apollo client?
    n
    • 2
    • 6
  • k

    kevinbrown

    06/25/2017, 11:20 AM
    Having trouble creating users using this example: https://github.com/graphcool-examples/react-graphql/blob/master/authentication-with-email-and-apollo/src/components/CreateUser.js I'm getting:
    Error while registering Error: GraphQL error: Argument 'authProvider' expected type 'AuthProviderSignupData!' but got: {email: {email: $email, password: $password}, firstName: $firstName, lastName: $lastName}. Reason: Unknown field 'firstName' is not defined in the input type 'AuthProviderSignupData'.
    g
    d
    • 3
    • 14
  • p

    Pieter

    06/25/2017, 11:27 AM
    Hi, I am using Webstorm (Jetbreains IDE) and I am using JS GraphQL plugin and it keeps highlighting errors in my apollo queries. I have project.graphcool file locally running that syncs with the server, but for some reason the plugin isn't picking it up. I don't have a graphql.config.json file, but could set it up and point it to project.graphcool file somehow. Any ideas?
  • p

    Pieter

    06/25/2017, 11:27 AM
    busy looking at this plugin, trying to figure out how to use it: https://graphcool.github.io/graphql-config/
    d
    • 2
    • 31
  • m

    mikita_du

    06/25/2017, 1:23 PM
    is there any starter kit for relay modern?
    n
    • 2
    • 3
  • h

    hagbarth

    06/25/2017, 2:22 PM
    Hey! Getting an internal error on request: cj4ct03pxwndo0142aoqjjje6
    ✅ 1
    n
    • 2
    • 1
  • h

    hagbarth

    06/25/2017, 4:58 PM
    Is there a nice way to convert an anonymous user to an auth0 based user?
    a
    • 2
    • 5
  • p

    patstrz

    06/25/2017, 6:41 PM
    Hi! I am working on gamification for my app. I would like to give users a points when they complete an action, and allow each user to have a scorecard with their point totals. I would also like to have a total community score which would be incremented every time a user gets points. Since you cannot increment a field with graphcool I was thinking of doing the following query:
    Copy code
    query {
      fifty: _allScoresMeta(filter:{value:50}){
    		count
      }
      hundred: _allScoresMeta(filter:{value:100}){
    		count
      }
      twohundred: _allScoresMeta(filter:{value:
    200}){
    		count
      }
    }
    and totaling up the points on the client.i.e)
    community_total = 50* data.fifty.count + 100 * data.hundred.count …
    Is this sustainable if there is a large number of scores I.e) 500,000 scores, I am worried that once there are a large number of scores stored the query will timeout, or that the query will be very slow. I would be polling this query frequently ( i.e every 5 seconds).
    a
    • 2
    • 30
  • p

    patstrz

    06/25/2017, 6:44 PM
    This what the models basically look like for scoring, I am open to taking a different approach
  • c

    ckelley

    06/25/2017, 10:39 PM
    @nilan any updates on these issues: https://github.com/graphcool/api-bugs/issues/111 // https://github.com/graphcool/api-bugs/issues/127 ?
  • k

    kjetilge

    06/26/2017, 1:42 AM
    This works fine on localhost. Anyone knows whats going on ?
    Data_not_loading_after_deploy_to_surge_sh.txt
  • u

    user

    06/26/2017, 1:43 AM
    @kjetilge commented on @kjetilge’s file https://prisma.slack.com/files/U553MFEHW/F5YM8739P/data_not_loading_after_deploy_to_surge_sh.txt: console output: res: Object {user: null, Symbol(id): "ROOT_QUERY"}
    Data_not_loading_after_deploy_to_surge_sh.txt
  • m

    mmaddex

    06/26/2017, 4:15 AM
    Can anyone point me to some documentation that might help with a "nested connect mutation" (I've already perused https://www.graph.cool/docs/reference/simple-api/nested-connect-mutations-tu9ohwa1ui/) for the following situation:
    Copy code
    query($featureId: String!) {
      Discussion(featureId: $featureId) {
        id
      }
    }
    
    createObservation (
     discussionId: <ID FROM PREVIOUS QUERY>
              …
    ) {
       id
    }
    I'd like to accomplish this in a single query. Above I'm first looking up a
    Discussion
    based on an external identifier called
    featureId
    then using the result of that query (a
    discussionId
    ) to create a proper connection when creating an
    Observation
    Is that possible? or is there some better way to model connections that are based on some arbitrary field?
    a
    • 2
    • 1
  • v

    visualbbasic

    06/26/2017, 5:50 AM
    Guys, when you are using Relay
  • v

    visualbbasic

    06/26/2017, 5:50 AM
    is it possible to store global state?
  • v

    visualbbasic

    06/26/2017, 5:50 AM
    I have a really long form that stretches out into multiple react pages
  • v

    visualbbasic

    06/26/2017, 5:50 AM
    and I want to accumulate data along the form process
1...245246247...637Latest