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

    coffenbacher

    08/13/2017, 2:49 AM
    This schema graph-view feature is awesome! Just stumbled across it and it's going to be really useful for walking through schema with clients, both technical and non-technical 💯
    m
    • 2
    • 2
  • d

    divyendu

    08/13/2017, 5:54 AM
    Hi Graphcool team, first of all, I love the product, thanks for building it. A question, is there a documentation of where graph cool deviates from standard GraphQL SDL? If it deviates at all.
    n
    • 2
    • 2
  • z

    zaksingh

    08/13/2017, 7:48 AM
    Hi all, I am new to GraphQL/Graphcool. How do I create a mutation that handles relationships? I need to fill out the 'user' field in a 'post' type for example.
  • d

    divyendu

    08/13/2017, 8:06 AM
    Also, I was working on a base schema for a blog and that would require an author/user. Do you guys recommend extending User type for that or create a new Author type as I have done here - https://github.com/divyenduz/writekey/commit/7a9e33cd42daa68a941c2fcef6a21c85b402c644. In what cases would we require an external type for User like Author if any? From my research, I think you recommend extending User - https://www.graph.cool/docs/reference/schema/overview-ahwoh2fohj/ Is there a way to link auth features with a custom type? Also, let me know if this is the right place to ask questions like these or should I turn to forums or issues? Many thanks !
    n
    • 2
    • 5
  • d

    divyendu

    08/13/2017, 8:08 AM
    Lastly, I noticed that these links are not working https://www.graph.cool/docs/tutorials/graphcool-features-overview-ped6wohw0o/ https://www.graph.cool/docs/tutorials/cli-multi-staging-workflow-ex4wo4zaep/ in resources section here https://github.com/graphcool/graphcool-cli Kudos on the overall dev experience so far !! I love it ❤️
    💚 2
    n
    • 2
    • 6
  • t

    theom

    08/13/2017, 9:34 AM
    @nilan I'm not sure what's may/may not have changed on the back-end, but I'm once again receiving the dreaded
    Copy code
    GraphQL error: Insufficient permissions for this mutation
    when attempting to trigger the following delete mutation:
    Copy code
    export const Remove_Comment_Mutation = gql`
      mutation removeComment ($cid: ID!) {
        deleteComments(id: $cid) {
          id
        }
      }
    `;
    What is the issue here?
    ✅ 1
  • n

    notrab

    08/13/2017, 10:20 AM
    @theom what is the permission structure for that Type?
  • n

    notrab

    08/13/2017, 10:20 AM
    The console will tell you this
  • u

    user

    08/13/2017, 10:39 AM
    @nilan commented on @theom’s file

    https://prisma.slack.com/files/U4KKMFVK2/F6NQJ7Q1L/insufficient-permissions.jpg▾

    : @theom, thanks for the message, I will reach out in a PM 🙏
  • m

    martin

    08/13/2017, 3:11 PM
    Which github repo do I report bugs again to? (searched, but couldn’t find)
    n
    • 2
    • 6
  • k

    kgoggin

    08/13/2017, 6:52 PM
    Hey folks, I’ve got what I hope is a pretty basic question about server-side subscription functions. I know they need to return a promise, but what ends up getting the resolved/rejected result from that promise? Am I able to use that anywhere? I’m mostly wondering about error messages - if something fails, how can I react to it on the client?
    n
    m
    • 3
    • 5
  • p

    peter

    08/13/2017, 7:34 PM
    hey everyone, can anyone link to a few example apps using
    apollo-client
    + subscriptions, graphcool, react? I've gone through quite a few examples and tutorials but I still find that when referring to the code provided, there are many differences resulting in poor use when referencing for best practices. Thanks!
    m
    n
    • 3
    • 3
  • p

    peter

    08/13/2017, 7:37 PM
    for example, the code for the freecom app differs considerably from the instagram app (and also the HN app). Perhaps this is because APIs change over time. But I still feel it would be valuable to have a more 'complete' app to use as a best-practices reference 🙂
  • j

    jjaybrown98

    08/13/2017, 7:54 PM
    trying to create an SDL type in the type editor within graph.cool
    Copy code
    extend type Query {
      isValidUser(hash: String!): User
    }
    I get the 'preview' and then apply, but it keeps reverting back to 'preview' with no message and doesn't save the schema
    v
    n
    • 3
    • 4
  • p

    panzupa

    08/13/2017, 8:53 PM
    Hi Guys, I have a strange behavior. Maybe someone can help me, I've got MyUser type with property createdBy: myUser @relation(name: "CreatedByUser"), whenever I add new user I pass 'createdById: "my_user_id_here" and it works ok. Relation is stored and I can query using it. However, when I add another user this relation in previous user disappears and is only present in the very last one (most recently added). What is going on?
    n
    • 2
    • 2
  • r

    ramblerob

    08/13/2017, 9:47 PM
    I have a webhook setup to an external URL when a new entry is created, but it doesn't actually fire... Am I missing something?
    n
    • 2
    • 1
  • m

    mlyons

    08/13/2017, 11:10 PM
    I'm having issues with Subscriptions to Types with permission queries and I have Anonymous Auth integrated, When a fresh-session gets initialized (no localStorage variables to pull from), the subscription client instantiates, then I authenticate an anonymous user and get Permission Denied errors. Then if I refresh (the localStorage variables are there), and I will have proper access. I'm following along in the Freecom tutorial chapter 4. I've tried wrapping the SubscriptionClient in a function and re-calling it after I receive the new user, but that doesn't work either. This happens with subscriptions-transport-ws@0.5.4 and 0.7.0. Edit: Forgot to ask a question of any kind.... Has anyone run into this issue as well?
  • b

    be4r

    08/14/2017, 12:11 AM
    unrelated to graphcool but wondering if anyone knows how to change route with props using react-router 3? currently i am using the context.replace to change routes based on authentication like so
    this.context.router.replace('/signup')
    but i want to pass in props to that route somehow.
  • r

    ryanw

    08/14/2017, 1:20 AM
    Does anyone know how to create a mutation with a parameter which is an array? I am trying to create a new conversation with a list of users, but can't seem to get it right. My mutation:
    Copy code
    const newConversation = gql`
      mutation($conversationIndex: Int!, $userIds: [User!]!) {
        createConversation(conversationIndex: $conversationIndex, usersIds: $userIds) {
          conversationIndex
          users {
            name
            username
            id
          }
        }
      }
    `
    The error I get:
    Copy code
    Error: GraphQL error: Variable '$userIds' cannot be non input type '[User!]!'
    d
    • 2
    • 2
  • t

    tmant1234

    08/14/2017, 1:21 AM
    Hey guys, I'm having issues trying to delete files using a "deleteFile" mutation; I keep getting an internal server error. Has anyone else encountered this problem? Thanks!
    r
    • 2
    • 2
  • k

    khoip

    08/14/2017, 3:00 AM
    Hello everyone, I'm trying to return data that you would normally get by joining across relations. For example I have a
    Business
    type that has one to many relation with
    Customer
    type which has one to many relation with
    Subscription
    type. Now I want to get all subscriptions belong to a business, how do I do that?
    s
    d
    • 3
    • 7
  • m

    marcusstenbeck

    08/14/2017, 4:58 AM
    @nilan In the docs search UI, I can’t click a topic in the autocomplete. Nothing happens. I have to actually press enter to go to the suggested article. I’m on macOS Chrome.
    n
    • 2
    • 1
  • b

    bruce

    08/14/2017, 5:37 AM
    If anyone is interested in an alternate example using auth0 I hacked up something w\ redux & saga, its fairly brute force and based on the graphcool apollo + auth0 example so the code should look familiar. https://github.com/tkntobfrk/react-redux-saga-graphcool-auth0
    n
    • 2
    • 1
  • b

    bruce

    08/14/2017, 5:38 AM
    redux tools and such work too
  • b

    bruce

    08/14/2017, 5:38 AM
  • s

    samjbmason

    08/14/2017, 9:28 AM
    Has anyone managed to setup a way to test (with mocking) graphql-request?
    glitch crab 1
    l
    n
    • 3
    • 7
  • m

    mitch3ls

    08/14/2017, 10:23 AM
    Hello 👋
  • n

    nikos

    08/14/2017, 10:37 AM
    Hi, how do you assert that an element contains a given text?
  • j

    jjaybrown98

    08/14/2017, 10:43 AM
    @artyom @nilan how could I get access to the SDL extension beta?
    ✅ 1
  • a

    alexanbj

    08/14/2017, 11:27 AM
    is it possible to add data to connections/edges?
    d
    • 2
    • 3
1...306307308...637Latest