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

    auser

    07/16/2017, 4:24 AM
    rad @dixonbydesign
  • u

    user

    07/16/2017, 4:33 AM
    @cj commented on @dixonbydesign’s file

    https://prisma.slack.com/files/U69CHK6TU/F69GGQ9RB/screen_shot_2017-07-15_at_10.22.14_pm.png▾

    : @dixonbydesign glad you got it working!
  • b

    briand

    07/16/2017, 6:59 AM
    Hey All, QQ - I got Auth0 setup but I'm trying to query the data from the user such as the user's name. I have this query and a component that displays the data props of this query but I'm getting undefined for id or name.
    Copy code
    const userQuery = gql`
      query userQuery {
        user {
          id
          name
        }
      }
    How do I get the logged in users data?
    n
    • 2
    • 1
  • e

    emin

    07/16/2017, 9:40 AM
    Hey, i've a question about pricing and volume - we run a Facebook app that makes around 1 million fb api calls a day (sometimes 10 million) we do ad optimisation. I'm going to rewrite our service soon and i'm playing with the thought to use graph.cool - but i'm afraid it will be way to expensive. Any feedback on this?
  • a

    agartha

    07/16/2017, 1:38 PM
    Q: At which stage in the RP can I create a node that references the newly created node? Only in
    TRANSFORM_PAYLOAD
    ?
    n
    • 2
    • 2
  • a

    agartha

    07/16/2017, 2:12 PM
    My function throws an error I can't see: cj56t06jmqqsq0100r8l3wclt
    n
    • 2
    • 8
  • h

    hammerspb

    07/16/2017, 2:49 PM
    I cannot update Function code in the browser!
    n
    • 2
    • 14
  • a

    agartha

    07/16/2017, 3:27 PM
    I'm running into https://github.com/graphcool/feature-requests/issues/178 again where the client doesn't know about the permission setup, so I'm unable to get any data back. Any updates on this?
  • a

    agartha

    07/16/2017, 3:48 PM
    How can I prevent a 1-on-1 relation from being overwritten after it's created?
    n
    • 2
    • 4
  • m

    max

    07/16/2017, 4:25 PM
    Does anyone know how to pull down the content of an Enum?...I've tried query enumValuesOfColor { __type(name: "Color") { name enumValues { name } } }
    n
    • 2
    • 1
  • c

    claym

    07/16/2017, 5:45 PM
    i'm creating a datetime field, is there a way to default the value to the time the record is created?
    n
    • 2
    • 4
  • t

    trond

    07/16/2017, 7:04 PM
    feel like I'm missing something obvious, but does the current user query like query { user { id } } ignore cache when using Apollo? Apollo docs says fetchPolicy defaults to cache-first, so I expected it to return a cached result when for example restarting app.
    n
    • 2
    • 2
  • m

    mman

    07/16/2017, 8:08 PM
    hi.. im following https://www.howtographql.com/graphql-js/2-queries/ tutorial but i think there are some inconsistences.. like "Now you just have to pass these resolvers when building the schema object with makeExecutableSchema:" where that makeExecutableSchema is defined ? i suppose it comes from somewhere on Testing with playground how "connect" the schema created with the server ? or its magic/automatic /me noobie, need babysteps instructions, not easy to follow if from step 1 jump to step 4 🙂 on the other hand.. many thanks for putting free resources!!
    n
    • 2
    • 2
  • j

    johhansantana

    07/16/2017, 8:39 PM
    hey guys, with react-apollo, I see that the mutations you have to call them like a function, but when I have normal queries they get called automatically when the component mounts, and if I try to call them again I get that they are not a function but an object instead.
  • j

    johhansantana

    07/16/2017, 8:40 PM
    this is what I have
    -.js
  • l

    lancej

    07/16/2017, 9:15 PM
    React native peoples out there.... What do you prefer when building UI elements, use the react-native components directly, use react-native-elements or native-base, or something else? I suppose all have their pros and cons.
    k
    • 2
    • 2
  • j

    jdspugh

    07/16/2017, 9:38 PM
    Hi there. I just managed to use jQuery to query my graph.cool access point and it works well. What’s the advantage of using Apollo over jQuery?
    m
    d
    • 3
    • 3
  • j

    johhansantana

    07/16/2017, 10:47 PM
    can someone help me out figuring why I get authentication error when I'm passing the authentication token? I've done a video explaining it here:

    https://youtu.be/oHQlJj7Jh1I▾

    h
    • 2
    • 2
  • a

    agartha

    07/16/2017, 10:50 PM
    Could you check the algorithm of your token on jwt.io? If it's RS256, then you need to change it to HS256.
  • j

    johhansantana

    07/16/2017, 10:51 PM
    @agartha how can I check that? The token is being send back by graph.cool
  • a

    agartha

    07/16/2017, 10:51 PM
    Which authentication mechanism are you using?
  • j

    johhansantana

    07/16/2017, 10:51 PM
    this one
  • a

    agartha

    07/16/2017, 10:52 PM
    Okay, then that does not apply. I see you have no fields selected on the Video
    READ
    permission
  • j

    johhansantana

    07/16/2017, 10:53 PM
    ohhhh
  • j

    johhansantana

    07/16/2017, 10:53 PM
    so it's like backwards
  • a

    agartha

    07/16/2017, 10:53 PM
    backwards?
  • j

    johhansantana

    07/16/2017, 10:54 PM
    huh weird, I could of swear I press the button where it selects them all
  • j

    johhansantana

    07/16/2017, 10:54 PM
    anyways, it's working now haha thanks 😅
    👍🏻 1
  • a

    agartha

    07/16/2017, 10:54 PM
    https://www.graph.cool/docs/reference/auth/authorization-iegoo0heez/#whitelist-permissions-for-modular-authorization
  • a

    agartha

    07/16/2017, 10:55 PM
    In general, permissions follow a whitelist approach:
    no operation is permitted unless explicitely allowed
1...272273274...637Latest