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

    joshjoe

    09/26/2017, 2:02 PM
    I’m trying to add or remove from a one-to-many relation and I’m getting a permissions error. Can anyone here take a look at https://www.graph.cool/forum/t/updating-related-types/1035 and let me know where I might be doing wrong?
    n
    • 2
    • 2
  • r

    rein

    09/26/2017, 2:13 PM
    Does anyone know what the current largest scale client is for graphcool and what that size is aprox?
    n
    • 2
    • 1
  • m

    mwickett

    09/26/2017, 2:27 PM
    Can someone sanity check this permission query for me - should allow either the owner of a credit OR a user with the Admin role to (in this case) read the Credit record
    Copy code
    query ($node_id: ID!, $user_id: ID!) {
      SomeCreditExists(
        filter: {
          id: $node_id
    	user: {
            OR: [{
              id: $user_id
            }, {
              role: Admin
            }]
          }
        })
      }
    n
    p
    • 3
    • 12
  • c

    Crumble

    09/26/2017, 2:41 PM
    hi guys
    👋 2
  • c

    Crumble

    09/26/2017, 2:43 PM
    anyone using graphcool for their auth in a production environment?
    m
    • 2
    • 2
  • c

    chrishurlburt

    09/26/2017, 3:32 PM
    anyone else having trouble with subscriptions? I've followed the docs + example apps, down to exact versions of react-apollo and subscriptions-transport-ws. on the network tab, i receive only keepalive pings from graphcool. it's not pushing any updates... strangely when i run the example app everything works. any gotchas to be aware of?
    n
    j
    m
    • 4
    • 9
  • s

    Sindre Svendby

    09/26/2017, 5:14 PM
    Hi! Looking into grapcool now, a quick general grapql question:
    Copy code
    type Player implements Node {
     fotballlPlayer: FotballPlayers
     volleyballPlayer: VolleyballPlayers
      ....
    }
    
    type FotballPlayer implements Node {
        player: Player!
        ....Fotball things
    }
    
    type VolleyballPlayer implements Node {
        player: Player!
        ..... Volleyball things
    }
    or can I do something like
    Copy code
    type FotballPlayer implements Player {
        ....Fotball things
    }
    
    type VolleyballPlayer implements Player {
        ..... Volleyball things
    }
    So VolleyballPlayer and FotballPlayer should have a one to one relations with the player, its basically just additional attributes on the object. But there will be so many overlapping fields name that i did not want to put it all in players and have volleyball_posistion and fotball_posisiton etc. there.
    i
    m
    • 3
    • 5
  • n

    nilan

    09/26/2017, 6:26 PM
    hey @Sindre Svendby that's not a bug, rather a missing feature that's documented here: https://github.com/graphcool/console/issues/1062 Nodes with required relations can be created from the Playground.
    s
    • 2
    • 5
  • a

    aurnik

    09/26/2017, 7:51 PM
    Has anyone here been getting the “Project not found: ‘test-project-id’” error in the console when testing functions? A couple others have had this same problem but it never got resolved: https://www.graph.cool/forum/t/test-run-feature-of-functions-is-not-working/788
    a
    n
    • 3
    • 7
  • a

    alechp

    09/26/2017, 8:55 PM
    Hopefully this is useful to a couple people! Feedback appreciated https://www.npmjs.com/package/graphql-query-factory
    🎉 1
    a
    n
    • 3
    • 10
  • p

    plarson

    09/26/2017, 9:17 PM
    -.txt
  • p

    plarson

    09/26/2017, 9:17 PM
    Any hints on how to debug this?
  • p

    plarson

    09/26/2017, 9:35 PM
    It seems like it’s trying to update the wrong project
    a
    • 2
    • 2
  • j

    jspr

    09/26/2017, 10:27 PM
    Hi all, will the React Native tutorial on https://www.learnapollo.com/ still result in a working app? The top of the page says Learn Apollo has been deprecated but How to GraphQL (https://www.howtographql.com/) doesn't have a section for React Native yet.
    a
    • 2
    • 1
  • m

    max

    09/26/2017, 10:38 PM
    Hey does anyone know how to get nested data from a delete mutation response? It's returning bull for me
  • m

    max

    09/26/2017, 10:38 PM
    *null
  • m

    max

    09/26/2017, 10:38 PM
    Else does anyone know how to access the react components props inside update for Apollo client?
  • c

    chandlervdw

    09/27/2017, 4:37 AM
    I’ve got a schema for a
    Donation
    Type and the first time I attempt to create a donation, it works fine but the second time, I get this error:
    Copy code
    {
      "data": {
        "createDonation": null
      },
      "errors": [
        {
          "locations": [
            {
              "line": 2,
              "column": 3
            }
          ],
          "path": [
            "createDonation"
          ],
          "code": 3032,
          "message": "The field 'campaign' on type 'Donation' is required. Performing this mutation would violate the constraint",
          "requestId": "eu-west-1:simple:cj82jcli9jgy70167eq91juig"
        }
      ]
    }
  • c

    chandlervdw

    09/27/2017, 4:38 AM
    code 3032 is a
    RelationIsRequired
    error… ?
  • d

    davidepalazzo

    09/27/2017, 4:41 AM
    @chandlervdw it looks like you left out a required field. A
    campaign
    field is mentioned in the error message.
    c
    • 2
    • 3
  • w

    witek

    09/27/2017, 7:01 AM
    Hi there guys, I have a question related to Auth0 integration with graphcool (on iOS). My problem is that i Cant find a way to refresh my idToken with refreshToken. I can successfully renew my accessToken, but idToken is missing from credentials ( using
    Auth0.authentication().renew
    and
    Auth0.authentication().tokenExchange
    ). This forces me to ask user to log in again after the idToken have expired, which is a huge inconvenience. A am using only Facebook login and i have switched to HS256 encoding and OIDC turned off as previously suggested. Is it causing the problem? Thanks!
  • p

    pika

    09/27/2017, 9:54 AM
    Hey, keep getting this error since just now when I try do a mutation:
    Error: GraphQL error: You are trying to set a required field to null. If you are using GraphQL arguments, make sure that you specify a value for all arguments.
    I'm pretty sure nothing has changed in the code, and all was working just fine before. Anyone else running into this?
    h
    n
    • 3
    • 4
  • h

    hvillain

    09/27/2017, 9:55 AM
    I've been getting these errors all morning :
    Unhandled (in react-apollo) Error: Network error: Server response was missing for query 'undefined'.
    n
    • 2
    • 2
  • n

    nilan

    09/27/2017, 10:40 AM
    thanks a lot @jmmaniego, I'm looking into this right now!
  • j

    jmmaniego

    09/27/2017, 10:40 AM
    awesome, thanks nilan
    n
    • 2
    • 4
  • y

    yunjia

    09/27/2017, 10:58 AM
    @nilan @jmmaniego I also had a similar problem just now. I solved it by setting some the required field to not-required. I did have a default value for this field, but not sure why I have to explicitly give it a value now.
    n
    • 2
    • 1
  • p

    Pieter

    09/27/2017, 10:59 AM
    I am using server side subscriptions quite a bit lately and I am loving it. The only frustration is that I need to copy paste boiler plate the whole time. e.g. if I need a function that sends a email to the user, I need to copy paste my auth tokens to access the mail server and the url for the mail server api et. Each and every subscription that sends a email needs to copy paste that. Webtask.io allows us to store secrets that are used across the different serverless functions. Is there something similar here?
    n
    • 2
    • 2
  • r

    rein

    09/27/2017, 12:26 PM
    Anyone here used graphcool in combination with expo to build a social login?
    d
    p
    • 3
    • 2
  • a

    agartha

    09/27/2017, 12:44 PM
    I'm getting a compilation error on my function when deploying a webpacked function: "Compilation failed: \\\"use latest\\\" is not a function\". Is 'use latest' automatically added by the Auth0 webtask compiler?
    n
    a
    • 3
    • 2
  • m

    mwickett

    09/27/2017, 1:18 PM
    So does Apollo 2.0 not handle credentials yet? https://github.com/apollographql/apollo-link/issues/44
1...351352353...637Latest