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

    dvarjun

    07/26/2017, 9:57 PM
    help*
  • d

    dvarjun

    07/26/2017, 9:57 PM
    im a newbie
  • g

    gidztech

    07/26/2017, 10:11 PM
    Nice job guys! Looking forward to checking this out. Interestingly, I had been writing a library (HeadlessJS) similar to this, but closer to CasperJS's API. However, I made less progress than you guys have. I'm not sure it makes sense for me to continue with mine - writing libraries is kinda new to me too. I think it'll be better for me to help with your project instead.
    n
    • 2
    • 1
  • d

    dvarjun

    07/26/2017, 10:16 PM
    Hi, I had some questions
  • d

    dvarjun

    07/26/2017, 10:16 PM
    So is graphcool a local db?
  • d

    dvarjun

    07/26/2017, 10:16 PM
    and are those api calls just within my app?
    m
    • 2
    • 3
  • z

    zaksingh

    07/26/2017, 10:33 PM
    Hi guys, just starting out with Graphcool. How would I go about running a daily operation on the database? I need to pull data from a bunch of .csv files and edit the data in Graphcool accordingly. What would be the best way to go about this?
    n
    • 2
    • 1
  • v

    virtualirfan

    07/26/2017, 11:54 PM
    I am trying to specify an "object" type that I can refer to as the type of another field in a different type. For example:
    Copy code
    type MetaData {
      algorithm: String!
    }
    
    type ABC implements Node {
      createdAt: DateTime!
      id: ID! @isUnique
      test: MetaData!
      updatedAt: DateTime!
    }
    I get an error:
    Copy code
    test: The relation field `test` must specify a `@relation` directive: `@relation(name: "MyRelation")`
    All I want to do is to specify a non-scalar type for a field without creating a new "table" that would create/necessitate a relation causing the equivalent of a join. Am I not thinking about this properly? Thoughts?
    a
    • 2
    • 1
  • j

    johhansantana

    07/27/2017, 12:23 AM
    is there a way with react-apollo to wait till I get a response when doing a query? Or a way to execute a query in
    componentDidMount
    ?
  • r

    ryan

    07/27/2017, 12:35 AM
    Hello, guys, I’ve been having problem with Email-Password Auth recently when trying to run createUser mutation, but it was ok at the beginning. I’ve been getting the error message
    "Something unexpected happened in an Action: 'Query does not pass validation. Violations:\n\nCannot query field 'some_field' on type 'User'
    , however, the user still gets created. I don’t have any permission (or query permission) configured on User type nor there’s “some_field” on it. Any ideas?
    n
    • 2
    • 6
  • m

    mannigan

    07/27/2017, 12:50 AM
    hey guys, been awhile since i’ve been in here so i apologize if this is a duplicate question… but has there been any additions for a “delete where” mutation?
  • a

    aarohmankad

    07/27/2017, 12:54 AM
    Hey guys/girls! Is there a channel for Chromeless?
    c
    m
    n
    • 4
    • 3
  • f

    falconerd

    07/27/2017, 4:44 AM
    Anyone know if it's possible to do something like this?
    Copy code
    given SomeType has fields a: String, b: Float
    
    mutation createSomeType($data: SomeType!) {
      createSomeType( <not sure what to put here> ) {
        id
      }
    }
    or do you have to list out each field separately twice?
    a
    • 2
    • 2
  • f

    falconerd

    07/27/2017, 4:51 AM
    For instance, I have been doing this type of mutation syntax
    Copy code
    mutation createCustomer(
      $firstName: String!,
      $lastName: String!,
      $phoneNumber: String!,
      $email: String,
    ) {
      createCustomer(
        firstName: $firstName,
        lastName: $lastName,
        phoneNumber: $phoneNumber,
        email: $email,
      ) {
        id
      }
    }
  • f

    falconerd

    07/27/2017, 4:51 AM
    It's pretty tedious
  • f

    falconerd

    07/27/2017, 4:51 AM
    Especially when types have many fields
  • m

    mark_au

    07/27/2017, 5:21 AM
    hey guys! i have a few questions, work at an adnetwork, one of our greatest threats in this industry is clickfraud, we can detect things like selenium and casperjs and nightmare.js, how on earth can we detect chromeless lol
    t
    a
    +2
    • 5
    • 8
  • m

    mark_au

    07/27/2017, 5:42 AM
    are there any external API calls that can be accessed when processing JS?
  • f

    frankspin

    07/27/2017, 7:31 AM
    When I want to build a app where Users belong one or many Organizations and a Organization can have one or many Users. What would be the best way to represent this in types.?
    Copy code
    type User implements Node {
    
    }
    
    type Organization implements Node {
    
    }
    Now for the join table, what would be the best strategy? One type or two types?
    Copy code
    type UserOrganizations implements Node {
    
    }
    
    type OrganizationUsers implements Node {
    
    }
    ```
    t
    a
    n
    • 4
    • 10
  • f

    frankspin

    07/27/2017, 10:38 AM
    Is there any good documentation on how to organize/structure your queries and mutations? Love to read some best practices.
    d
    • 2
    • 1
  • b

    bogdan

    07/27/2017, 11:05 AM
    hello, is there anyway to apply a filter based on a condition ? for example in this query I would like to apply the status filter only when the variable $status is not empty
    Copy code
    query allUsers($status: [USER_STATUS!]) {
        allUsers(
          filter: 
            { status_in: $status }
        ) {
    d
    n
    • 3
    • 7
  • h

    halborg

    07/27/2017, 11:30 AM
    Does anyone know how/if it is possible to trigger a refresh in a Relay Modern RefreshContainer without passing (new) variables? I’m looking for the best way to implement the good ol’ pull-to-refresh on a React Native list, that should simply refetch the original query - no variables needed
    • 1
    • 3
  • n

    nephix

    07/27/2017, 12:08 PM
    Got the following query to check some status of a user:
    Copy code
    query HasUserCompletedSetup($email: String!) {
      User(email: $email) {
        hasCompletedSetup
      }
    }
    How can I set up the permission query so that users can only check their own data but no the data of other users?
    j
    n
    • 3
    • 4
  • j

    joeblack74

    07/27/2017, 12:33 PM
    Hi, I've got a question and I'm wondering if anyone could help, I haven't found anything in the documentation. My problem is the following: I have a User entity and an Event entity The User has a list of Event entity (property
    events
    on User)
  • j

    joeblack74

    07/27/2017, 12:33 PM
    now what I'm trying to do is to create a new User and bind it with an existing event
  • j

    joeblack74

    07/27/2017, 12:33 PM
    in one request
  • j

    joeblack74

    07/27/2017, 12:35 PM
    if the User had just an
    event
    field and not an
    events
    list, I could simply do something like described in https://www.graph.cool/docs/reference/simple-api/creating-nodes-wooghee1za/?r#connecting-a-new-node-to-another-node
  • j

    joeblack74

    07/27/2017, 12:35 PM
    using EventId
  • j

    joeblack74

    07/27/2017, 12:35 PM
    but here as it's a list of events, I'm lost with the syntax and I'm not even sure it is possible
    d
    j
    • 3
    • 6
  • k

    karthikvarma

    07/27/2017, 12:35 PM
    Thank you loads team for creating Chromeless 😄 Its easy to use and even understandable. Will be helping thousands of noobs like me out there! (I got few questions tho. will be glad if someone could help)
    s
    • 2
    • 1
1...288289290...637Latest