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

    Daniel K.

    08/17/2017, 12:31 PM
    A function returned an unhandled error. Please check the logs for executionId 'eu-west-1simplecj6gf9f2ydk5g0156f63z90qh'
    can I actually check those logs somewhere? I don't see it anywhere 😞
  • m

    matty

    08/17/2017, 12:32 PM
    Yea if you go to the Functions page, there's an icon in the right-most column
  • d

    Daniel K.

    08/17/2017, 12:33 PM
    well, but this isn't from my function, it was regular nested mutation
  • m

    matty

    08/17/2017, 12:33 PM
    starting to dive into RS256 tokens with auth0 + schema extensions, a little worried that the official example includes using a webhook and steps like "Copy the function URL into Graphcool"...
    d
    • 2
    • 17
  • m

    meikoudras

    08/17/2017, 12:48 PM
    Hi! I followed this tutorial to integrate graph.cool with Auth0: https://www.graph.cool/docs/tutorials/react-apollo-auth0-pheiph4ooj/
  • m

    meikoudras

    08/17/2017, 12:49 PM
    but i still seem to be getting this error: The provided idToken is invalid. Please see https://auth0.com/docs/tokens/id_token for how to obtain a valid idToken
  • m

    meikoudras

    08/17/2017, 12:49 PM
    even though the idtoken is the same that lock gives me after authentication
  • m

    meikoudras

    08/17/2017, 12:49 PM
    requestId: “eu-west-1simplecj6gft3doejog015645ybrslq”
  • s

    suchy

    08/17/2017, 12:52 PM
    I have probably stupid question: is there any chance to store “serverless functions” in my code? I’d like to keep it in version control etc so keeping it only in Graph Cool console is a little bit not enough
    d
    n
    • 3
    • 16
  • m

    matty

    08/17/2017, 12:56 PM
    @meikoudras you're running into the problem I was just talking about, see https://github.com/graphcool/feature-requests/issues/145
    👍 2
    m
    • 2
    • 1
  • m

    matty

    08/17/2017, 1:08 PM
    Anyone have an idea for this use case... I'm integrating with the Linkedin API to gather a users Linkedin details, and return them to the client
  • m

    matty

    08/17/2017, 1:08 PM
    After that the user fills out the rest of a form, and calls a createType function on Graphcool
  • m

    matty

    08/17/2017, 1:09 PM
    how can I ensure the integrity of the submission, i.e. that the user had successfully authenticated with Linkedin in a prior step
    n
    • 2
    • 3
  • m

    matty

    08/17/2017, 1:09 PM
    the only things I can think of are hacks... like adding an extra field that won't be used for storage, using that to send the linkedin token and doing a call to linkedin during the request pipeline to check the validity of the token, and then discard the token server-side so that it is not saved to the Graphcool database
  • m

    matty

    08/17/2017, 1:11 PM
    I was trying to use headers.. and got the client to successfully send the header, but it appears that the header doesn't come through on the context object in the graphcool function
  • m

    matty

    08/17/2017, 2:01 PM
    ok I'm going to do something super nasty and roll it into an existing email field, so that I'm now sending
    <mailto:my@email.com|my@email.com>|LI_TOKEN
  • d

    Daniel K.

    08/17/2017, 2:09 PM
    so server-side subscriptions and request-pipeline functions cannot use
    graphcool-lib
    that easily I see, the projectId/PAT is not coming in the event object and crashing when trying to use
    fromEvent
    😞
    n
    a
    • 3
    • 12
  • j

    joao.santos

    08/17/2017, 3:16 PM
    Hi guys, can someone help me integrate - https://github.com/roadmanfong/react-cropper - with this graphcool example? - https://github.com/graphcool-examples/react-graphql/blob/master/files-with-apollo/src/components/CreatePage.js -
    n
    h
    • 3
    • 7
  • b

    bobbyt

    08/17/2017, 4:54 PM
    Hi! In my schema I have an enum called Role:
    Copy code
    enum Role {
      COACH
      CLIENT
    }
    Which is referenced by a “roles” field in my User schema.
    Copy code
    type User implements Node {
      auth0UserId: String @isUnique
      id: ID! @isUnique
      name: String!
      username: String
      roles: [Role!]! @defaultValue(value: "[CLIENT]")
    }
    This basic user query works:
    Copy code
    {
      User(id: “abc123”) {
        id
        name
        roles
      }
    }
    This does not (I cannot include the enum field in my query to filter results):
    Copy code
    {
      User(id: “abc123”, *roles: [CLIENT]* ) {
        id
        name
        roles
      }
    }
    Adding “roles” to my query causes a syntax error. Any ideas how to include the enum field in my query? Thanks!
    n
    d
    • 3
    • 5
  • s

    spences10

    08/17/2017, 5:26 PM
    Anyone able to point me to resources on how to do batch mutations?
    a
    • 2
    • 4
  • s

    spences10

    08/17/2017, 5:32 PM
    https://www.graph.cool/forum/t/bulk-add-batch-add-insert/477/7
  • a

    agartha

    08/17/2017, 5:54 PM
    Q: Has anyone tried to turn Auth0 authentication upside down and configure Graphcool as custom social connection on Auth0, so when you authenticate with Auth0, you can also get the Graphcool token? @nilan This might also help with the Auth0 integration I guess...
    n
    s
    • 3
    • 2
  • c

    corey

    08/17/2017, 6:49 PM
    I’m finding myself using this pattern a lot
  • c

    corey

    08/17/2017, 6:49 PM
    Copy code
    // How I query for a single book
    allBooks(last: 1, filter: {author: $author, title: $title}) {
      id
      otherStuff
    }
    
    // How I convert the returned array to a single book
    const book = this.props.data.allBooks[0]
  • c

    corey

    08/17/2017, 6:50 PM
    Since
    title
    isn’t unique I can’t just use
    Book
    .
  • c

    corey

    08/17/2017, 6:50 PM
    Is that the pattern other people use or is there a better way?
    n
    • 2
    • 5
  • z

    zaksingh

    08/17/2017, 7:43 PM
    I am worried that I am running my mutations wrong. Right now I first run a create mutation for the type, then have seperate mutations to populate the relationships. Is there a way to do this all in one step?
    n
    s
    • 3
    • 3
  • l

    lastmjs

    08/17/2017, 8:28 PM
    I'm trying to delete a permanent auth token:
    Copy code
    Variable '$input' expected value of type 'DeletePermanentAuthTokenInput!' but got: {"deletedId":"cj6gwd6s71v8c01101692retp"}. Reason: Unknown field 'deletedId' is not defined in the input type 'DeletePermanentAuthTokenInput'. (line 2, column 3): $input: DeletePermanentAuthTokenInput! ^
    n
    • 2
    • 1
  • d

    Daniel K.

    08/17/2017, 8:43 PM
    oh I just found out about tabs in playground and history of queries with possibility to star them ... that's very lovely 😍
    💯 2
  • g

    georgelovegrove

    08/17/2017, 8:50 PM
    Big decision here: - OneSignal push notifications using the graph.cool integration OR - Expo push notifications through a external Serverless function anyone share their experience?
    n
    • 2
    • 1
1...310311312...637Latest