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

    picosam

    07/03/2017, 2:11 PM
    Hello, maybe it's better to ask here than on the apollo slack: does anyone know if, when using
    fetchMore
    , there is a way to know when fetching or "loading" from network is over so that I can hide my loader (spinner) accordingly?
    a
    • 2
    • 3
  • a

    adrianocola

    07/03/2017, 2:36 PM
    Some of my Relation Permission Queries stopped working for initial connections! I wanted to make sure that a node could only be connected to a single other node, forever. For intance, if I have the types
    Store
    and
    Sale
    (1xN), and a sale should stick to the store it was created for, this was the Relation PQ that I was using:
    Copy code
    query ($salesSale_id: ID!) {
      SomeSaleExists(filter: {
        id: $salesSale_id
        store: null
      })
    }
    This doesn’t work anymore (gives a
    No CONNECT permissions
    )! Was working last week.
    n
    • 2
    • 1
  • a

    allpwrfulroot

    07/03/2017, 4:25 PM
    Can I upload user images to Graph.cool through any form of fetch() yet?
    n
    • 2
    • 10
  • c

    chunyang

    07/03/2017, 5:11 PM
    Hi everyone! I get an error from graph cool and it leads me here. When I hit preview for the following types, I get an error. I think it’s related to the \@relaciton. Is this the place to ask questions like this?
    Copy code
    Whoops. Looks like an internal server error. Please contact us in Slack (<https://slack.graph.cool>) and send us your Request ID: cj4oeil60po7e0149wpfkypj1
    Copy code
    type Batch implements Node {
      id: ID! @isUnique
      createdAt: DateTime!
      updatedAt: DateTime!
      productId: String!
      quantity: Int!
      unitCost: Int!
      orderId: String! @relation(name: "MyRelation")
    }
    
    type Order implements Node {
      id: ID! @isUnique
      createdAt: DateTime!
      updatedAt: DateTime!
          clientId: String!
        status: OrderStatus!
        amountCollected: Int!
        transportationCost: Int!
        batches: [Batch!]! @relation(name: "MyRelation")
    
    }
    n
    • 2
    • 18
  • g

    giedriusr

    07/03/2017, 6:19 PM
    is there an open source react native + apollo + graphcool example for using email/password
    n
    n
    • 3
    • 38
  • g

    giedriusr

    07/03/2017, 6:19 PM
    I found two using Auth0
  • q

    qsys

    07/03/2017, 6:34 PM
    Is there any (estimated) release date for GraphQL interfaces?
  • a

    arosca

    07/03/2017, 6:48 PM
    Hi everyone! 
 Looking for some advice on integrating mobx, apollo & graphcool (disclaimer: I’m new to all of them). 
 Would this attached code be a good practice? I’m basically trying to add the auth methods & query to the store as opposed to react components. This doesn’t work because I’m missing the client object in that store, but wondering if it’s a good idea to pursuit this. Any thoughts?
    -.js
  • m

    mikita_du

    07/03/2017, 7:01 PM
    Hi everyone. I'm trying to use relay modern. And I meet next case. I'm trying to render component, and then, after changing variables - refetch it. On relay page I can see, that this logic covered by refetch container. But in this case I should use graphql experimental. Is this the only one way to use variables? And what is graphql experimental? Will it be implemented as basic functionality or not?
  • u

    user

    07/03/2017, 7:02 PM
    @allpwrfulroot commented on @arosca’s file https://prisma.slack.com/files/U62LPPN6N/F62KJ69Q8/-.js: If you're using apollo, you might want to consider Redux instead of Mobx. Redux is going to be included anyway since it's a dependency of Apollo, and it's easy to integrate the stores
    -.js
  • a

    azurelogic

    07/03/2017, 8:38 PM
    Hey guys, I work with @jshort, and he recommended that I bring some of my questions to you guys as I stumble through GraphQL stuff. I’m working on a project where users will be able to sign up on their own with Auth0 and it creates a user in our Graph.cool project. From there, the user should be able to retrieve their data from Graph.cool. I managed to get the user creation working via Auth0 Rules. However, once I log in with a user and attempt to make a request for data via the simple API, I get errors about insufficient permissions back. I’m adding the current
    id_token
    that Auth0 kicked back in the standard
    Authorization: Bearer <token>
    header format. Am I missing something?
  • a

    azurelogic

    07/03/2017, 8:39 PM
    I should specify, I only get those errors when I turn on the Authentication required option for that “table” for Read in the Permissions section
  • j

    joshmadewell

    07/03/2017, 8:40 PM
    what does your permission query look like?
  • a

    azurelogic

    07/03/2017, 8:40 PM
    I’ve tried it even without a permission query
  • a

    azurelogic

    07/03/2017, 8:41 PM
    but this is the permission query that I had originally:
    Copy code
    query ($node_id: ID!, $user_id: ID!) {
      SomeUserExists(
        filter: {
          AND: [
            {
              id: $node_id
            },
            {
              id: $user_id
            }
          ]
        }
      )
    }
  • j

    joshmadewell

    07/03/2017, 8:41 PM
    oh weird, I’ve never done that… I’m pretty sure permission queries must return true/false so having nothing would likely return false
  • a

    azurelogic

    07/03/2017, 8:42 PM
    I mean, I disabled the “Use Permission Query” option, and I still get errors for “Insufficient permissions”
  • a

    azurelogic

    07/03/2017, 8:42 PM
    So, it must be connected to the Auth0 integration
  • j

    joshmadewell

    07/03/2017, 8:42 PM
    oh..I see
  • j

    joshmadewell

    07/03/2017, 8:43 PM
    yeah then that sounds like Auth0 to me which I’m not using 😞
  • j

    joshmadewell

    07/03/2017, 8:43 PM
    so not sure I’m much help
  • a

    azurelogic

    07/03/2017, 8:43 PM
    it’s ok, I appreciate it anyway
  • a

    azurelogic

    07/03/2017, 8:54 PM
    In case someone else comes along and has another idea, I can post this:
    {"query":"{\n\tuser {\n    firstName\n    lastName\n  }\n}"}
    without getting an error when passing a particular user’s token, but the results are:
    Copy code
    {
      "data": {
        "user": null
      }
    }
  • a

    azurelogic

    07/03/2017, 8:56 PM
    which is not expected at all. And that’s with “Authentication required” turned on to read the User “table”. “Use Permission Query” being on/off does not affect the outcome at all.
    n
    j
    • 3
    • 2
  • i

    ilija

    07/03/2017, 10:59 PM
    Hello, i am kind new to graphcool but already love it. I want to start using it for production but cant find a way to do integration/unit testing with continious integration. Anyone has a workflow how to achieve those? Thanks
    a
    • 2
    • 10
  • g

    grardb

    07/03/2017, 11:06 PM
    anyone know how i can perform validation on passwords? i’ve got a request pipeline function working for emails and usernames, but i think the password i have access to is already hashed. how can i enforce a minimum length?
    a
    • 2
    • 2
  • g

    grardb

    07/03/2017, 11:15 PM
    hrm, my googling seems to tell me that constraints are still being worked on 😞
  • v

    visualbbasic

    07/04/2017, 2:18 AM
    guys
  • v

    visualbbasic

    07/04/2017, 2:19 AM
    when you are using graphql with postgres
  • v

    visualbbasic

    07/04/2017, 2:19 AM
    do you think we must change our idea about data structure from relational model to graph model?
1...254255256...637Latest