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

    matty

    07/25/2017, 4:50 AM
    I don't see it in the Simple API
  • m

    matty

    07/25/2017, 4:52 AM
    ah nvm, thats the custom mutation name
  • m

    matty

    07/25/2017, 5:10 AM
    updateUser(id:".XYZ", postIds:[] ) { ... }
  • m

    matty

    07/25/2017, 5:10 AM
    "message": "The field 'user' on type 'Post' is required. Performing this mutation would violate the constraint",
  • m

    matty

    07/25/2017, 5:10 AM
    ???
  • m

    matty

    07/25/2017, 5:14 AM
    pressing play in the examples on the graphcool docs is meant to do something?
    n
    • 2
    • 1
  • m

    matty

    07/25/2017, 5:26 AM
    i dont understand how you're suppose to connect things along a to-many edge, when you're not allowed to create the
    Post
    without giving a user?!
    d
    • 2
    • 4
  • n

    nephix

    07/25/2017, 7:54 AM
    I want to use Expo’s FB login to authenticate users in my react native app (and with the graphcool backend) https://docs.expo.io/versions/v15.0.0/sdk/facebook.html there’s currently no way to hook this up with the existing authentication system of graphcool, right?
    🌟 1
    👍 1
    d
    n
    a
    • 4
    • 6
  • p

    picosam

    07/25/2017, 9:36 AM
    Hello! There’s an API method that I’m calling via
    fetch
    inside a Schema Extension function, which may return the following result:
    Copy code
    {
      "error": "invalid_grant",
      "error_description": "Authorization code does not exist: {AUTHORIZATION_CODE}"
    }
    I’m trying to make the error re-surface by using the following:
    Copy code
    return callApiMethod()
        .then(result => {
        	if (result.error) {
              return result
            }
        	return anotherFunctionCall()
      	})
    But this results in the following error when I call the mutation:
    Copy code
    "code": 5004,
          "message": "Returned Json Object does not match the GraphQL type: Expected String as JsString, but got {\"error\":\"invalid_grant\",\"error_description\":\"Authorization code does not exist: test\"}",
          "requestId": "cj5jdlav7escm0159es7eu6d7"
    n
    • 2
    • 49
  • f

    frankspin

    07/25/2017, 9:45 AM
    When using auth0 in combination with graph.cool. Do I use the user.id or user.auth0UserId in relationships to the user type?
    p
    d
    • 3
    • 3
  • c

    culinaru

    07/25/2017, 10:36 AM
    Hello everybody! I am very new to GraphQL and GraphCool... Maybe I want to start a pilot project app.. At the moment I try to figure out where to put business logic / stuff which I can not do in queries. For example sorting results by the distance between lat,long in database and the GPS information of the user... Can anybody give me some tips? Thank you!
    d
    s
    a
    • 4
    • 28
  • a

    andre

    07/25/2017, 1:49 PM
    Maybe a dump question, but is it possible to have a relation only reflected in one entity type? Consider the following scenario: A
    Car
    has exactly one
    File
    . A
    Truck
    has exactly one File as well. Is there a way that those two relations are not reflected in the
    File
    entity – so that the File can only be reached via the
    Car
    or the
    Truck
    but not via
    File
    ?
    n
    • 2
    • 4
  • m

    mikael

    07/25/2017, 3:11 PM
    anyone run into this before?
    Copy code
    error: unexpected 
      query AllMessagesQuery {
      ...
    it starts after the
    Copy code
    ALL_MESSAGES_QUERY = gql`
                            ^
    n
    • 2
    • 1
  • m

    mikael

    07/25/2017, 3:12 PM
    its a dumb issue probably due to trying to work with an old react repo but not sure what the fix would be
  • m

    mikael

    07/25/2017, 3:21 PM
    just trying to wrap a component with a query. It’s like it doesn’t understand the gql syntax? like maybe I need some kind of post processing, or maybe it conflicts with coffeescript?
    here_s_the_code.coffee
  • u

    user

    07/25/2017, 3:24 PM
    @nilan commented on @mikael’s file https://prisma.slack.com/files/U6A93S6QY/F6D9G18E7/here_s_the_code.coffee: this looks correct. what element in your system returns the error?
    here_s_the_code.coffee
  • m

    mikael

    07/25/2017, 3:25 PM
  • n

    nilan

    07/25/2017, 3:26 PM
    but where is this error coming from
  • n

    nilan

    07/25/2017, 3:26 PM
    is it a linter error
  • n

    nilan

    07/25/2017, 3:26 PM
    or some kind of a compiler?
  • m

    mikael

    07/25/2017, 3:27 PM
    Module build failed: Error:
  • n

    nilan

    07/25/2017, 3:27 PM
    does it happen during runtime?
  • m

    mikael

    07/25/2017, 3:28 PM
    webpack: Failed to compile.
    so compiler error
  • n

    nilan

    07/25/2017, 3:28 PM
    well, it looks to be some issue specific to your compile setup. what repo/example are you using?
  • m

    mikael

    07/25/2017, 3:29 PM
    its a repo from work not online
  • n

    nilan

    07/25/2017, 3:29 PM
    ah hmm. looks like the
    gql
    thing is not handled correctly
  • m

    mikael

    07/25/2017, 3:30 PM
    yea I’m thinking its an issue with our coffeescript loader?
  • d

    dankent

    07/25/2017, 3:30 PM
    It looks to me like the webpack compiler being used does not support the backtick template literal syntax
  • n

    nilan

    07/25/2017, 3:30 PM
    ^
  • d

    dankent

    07/25/2017, 3:31 PM
    I'd check what the babel settings are to make sure a recent enough ES version is supported
1...285286287...637Latest