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

    denali

    08/24/2017, 9:20 PM
    Are y'all familiar with this project?
  • d

    denali

    08/24/2017, 9:21 PM
    I am also a big fan of GraphQL, but that is not the area I am working with right now 🙂
  • d

    dardub

    08/24/2017, 9:22 PM
    Oh I see I wasn't aware of that. I haven't used it before, but hopefully someone else in here has.
  • d

    denali

    08/24/2017, 9:22 PM
    Thanks for the response, either way!
    d
    • 2
    • 1
  • d

    dardub

    08/24/2017, 9:24 PM
    Since it's on AWS lambda it should be able to run in parallel.
  • c

    coffenbacher

    08/24/2017, 10:51 PM
    This is kind of a silly question, but am I doing something GraphQL very wrong if I'm basically building queries using basic string operations? I'm making my own helper functions and stuff to deal with how enums need to be formatted in the strings, etc. I don't know how else to do this in GraphQL / Graph.cool, are there libraries for this??? I just know that if I was doing this in SQL in 2017 it would be horribly the wrong way to do it haha
    a
    j
    +2
    • 5
    • 9
  • b

    be4r

    08/25/2017, 12:10 AM
    i have a node of
    Card
    that has a field of
    colorIdentity
    that has a value of
    [String!]
    , I set up some filters on the front end to find any Cards that have the set colors. If I select Blue, Red and then query, I expect to get a result of any card that has Blue OR Red in their
    colorIdentity
    . However, graphcool's autogenerated
    CardFilter
    does not have any methods for my
    colorIdentity
    field. How can I make this filter possible?
    n
    • 2
    • 2
  • b

    be4r

    08/25/2017, 3:40 AM
    something very strange is happening with my Auth0
    user
    query
  • b

    be4r

    08/25/2017, 3:40 AM
    initially, it queries fine
    Copy code
    emailAddress
    :
    "<mailto:emailTest@email.com|emailTest@email.com>"
    id
    :
    "cj6rb1ean46fa0116a6in406g"
    name
    :
    "emailTest"
  • b

    be4r

    08/25/2017, 3:41 AM
    but at some query point it changes to a different username
    Copy code
    emailAddress
    :
    "<mailto:emailTest@email.com|emailTest@email.com>"
    id
    :
    "cj6rb1ean46fa0116a6in406g"
    name
    :
    "fbtest"
  • b

    be4r

    08/25/2017, 3:43 AM
    how and why is the
    user.name
    changing?
  • b

    be4r

    08/25/2017, 3:57 AM
    hmm i removed this from the apolloClient and it's working now....
    Copy code
    dataIdFromObject: o => {
        if(o.__typename === 'User' || o.__typename === 'Drawer') {
          return o.__typename
        } else {
          return o.id
        }
      }
    d
    • 2
    • 2
  • a

    amandoabreu

    08/25/2017, 7:19 AM
    Hey guys, trying to go through an example of Vue+apollo+auth0, but it's not working as expected, been on it for 3 or 4 hours, but I think the code is simply outdated(but my knowledge is too little to figure out where). This repo: https://github.com/jharmon141/vue-apollo-auth0-example After configuring the auth0lock with my id and url, and also the graph.cool endpoint, I can't register a user, the login activity shows up in my auth0 dashboard, butt he user is not created in graphcool, and as far as graphcool knows, the user is not authenticated. Submitting the form in CreateUser.vue throws the following errors:
    • 1
    • 1
  • a

    amandoabreu

    08/25/2017, 7:20 AM
  • m

    matty

    08/25/2017, 7:27 AM
    @amandoabreu - https://github.com/graphcool/feature-requests/issues/145
  • m

    matty

    08/25/2017, 7:28 AM
    The auth0 integration comes with some pretty nasty fine print.
  • a

    amandoabreu

    08/25/2017, 7:36 AM
    Thanks, @matty ! Would have never found that, damn.
  • a

    amandoabreu

    08/25/2017, 7:37 AM
    However, it seems that now I get a 401 when making the request for the token, when trying to GET https://myname.eu.auth0.com/tokeninfo?id_token=&lt;token here>
    d
    • 2
    • 5
  • m

    matty

    08/25/2017, 7:37 AM
    @amandoabreu - my pleasure 🙂 if you want to use the latest auth0-js library (v8), you can disable the token verification
  • m

    matty

    08/25/2017, 7:38 AM
    Copy code
    webAuth.popup.callback({
            _idTokenVerification: false,
          });
    👍 1
    d
    • 2
    • 1
  • m

    matty

    08/25/2017, 7:38 AM
    Ah, I'm not sure about how the rest of the tutorial you're using works
  • p

    preston

    08/25/2017, 9:54 AM
    I'm not a web dev and I'm trying to print an introspectionSchema in SDL with no luck. How do I add auth headers/token to the get-schema command? I'm not trying to set up any server or anything, I just need the schema for a client
  • p

    preston

    08/25/2017, 9:56 AM
    For example getting the schema from the yelp.com graphql endpoint
    n
    • 2
    • 9
  • e

    eraldo

    08/25/2017, 11:22 AM
    I liked to see so many of you yesterday! 😄
    👍 3
    🎉 2
    n
    • 2
    • 1
  • d

    dno

    08/25/2017, 1:24 PM
    Hi, i try to get your instagram auth0 example to work but the auth0IdToken is always undefined after i login with google. Any Tips? Domain, Client ID and Secret are set.
  • d

    dno

    08/25/2017, 2:03 PM
    on ‘authenticated’ only returns accessToken and state
  • d

    dno

    08/25/2017, 2:04 PM
    idToken, refreshToken and idTokenPayload are undefined
  • a

    amandoabreu

    08/25/2017, 2:06 PM
    @dno look at your advanced settings, oAuth:
  • a

    amandoabreu

    08/25/2017, 2:07 PM
  • a

    amandoabreu

    08/25/2017, 2:07 PM
    Try changing to that
1...318319320...637Latest