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

    fabien0102

    12/15/2017, 4:35 PM
    Hi, what it's the most simple way to clear local database? (graphcool on local docker)
    s
    a
    n
    • 4
    • 37
  • j

    johnvalustik

    12/15/2017, 4:50 PM
    Hello! I love GraphCool and it's interesting to see the new direction and I'm excited about it. Although, I was wondering how authorisation will be handled by Graphcool 1.0? Will we get permission queries out of the box or we will have to write our own resolvers? Thx! @nilan
    ๐Ÿ‘ 3
    n
    • 2
    • 2
  • s

    Steven Sacks

    12/15/2017, 6:16 PM
    How do I give my bearer token user permission to call a generated mutation?
  • s

    Steven Sacks

    12/15/2017, 6:17 PM
    In graph.cool playground, I can call the mutations that I wrote that call generated mutations, but I can't call the generated mutations themselves.
    n
    • 2
    • 3
  • o

    orefalo

    12/15/2017, 7:52 PM
    Hi, is there a document that explain the json format to configure playground?
    n
    • 2
    • 1
  • o

    orefalo

    12/15/2017, 7:52 PM
    at least the configuration to point it to my graphql server
  • r

    Raj

    12/15/2017, 8:21 PM
    Hello ! I'm new to graphcool. I saw your details about the architecture . I would like to know more details about how graphcool can be deployed on our own AWS account ? What AWS resources we would need to provision , etc., (especially what database we can use ), so that we can estimate the cost .. Is this detail available anywhere ?
    n
    • 2
    • 3
  • j

    jferrettiboke

    12/15/2017, 8:23 PM
    @schickling @nilan @agartha Hi there! I am testing all my back-end. I wonder if there is a way to reset all the database (clear all the data) each time I run my tests. I am using Jest and I would like to reset the database in
    beforeAll()
    before all the tests run. Is there any way to reset the database or do I have to do it manually (writing mutations for each type)? Thanks.
    n
    • 2
    • 2
  • e

    ehodges

    12/15/2017, 9:33 PM
    Trying out the new version 1.0. When I ran graphcool deploy I got these errors: [ERROR] in /Users/erichodges/Documents/graphcool/graphql-boilerplate-1/graphcool.yml: Errors while validating graphcool.yml: Error: data should NOT have additional properties at Output.error (/usr/local/lib/node_modules/graphcool/node_modules/graphcool-cli-engine/src/Output/index.ts16415) at Object.<anonymous> (/usr/local/lib/node_modules/graphcool/node_modules/graphcool-cli-engine/src/ProjectDefinition/yaml.ts389) at step (/usr/local/lib/node_modules/graphcool/node_modules/graphcool-cli-engine/dist/ProjectDefinition/yaml.js3223) at Object.next (/usr/local/lib/node_modules/graphcool/node_modules/graphcool-cli-engine/dist/ProjectDefinition/yaml.js1353) at fulfilled (/usr/local/lib/node_modules/graphcool/node_modules/graphcool-cli-engine/dist/ProjectDefinition/yaml.js458) at <anonymous> Exiting with code: 1 Any ideas? Is this a bad question or do I need to include more information??
    n
    • 2
    • 2
  • p

    parris

    12/15/2017, 10:14 PM
    Hi all ๐Ÿ‘‹
    ๐Ÿ‘‹ 5
    ๐Ÿ‘‹๐Ÿป 1
    n
    • 2
    • 1
  • s

    steve

    12/15/2017, 10:42 PM
    @jferrettiboke - Check out this thread https://graphcool.slack.com/archives/C0MQJ62NL/p1513355703000557
  • j

    Josh Willis

    12/15/2017, 11:18 PM
    Is this the place to ask about the structuring of models?
    a
    • 2
    • 2
  • r

    radicand

    12/16/2017, 12:54 AM
    I'm working on a small app where users can create a couple different types of nodes (there's a hierarchy between them, and there's a field denoting the owner's node ID on each), and I want to enforce a permissions model where they can only view nodes they created. Will I need to create manual permission queries for each node type and relationship to accomplish this, or is there a more elegant way?
    a
    • 2
    • 1
  • a

    Andrew Schreiber

    12/16/2017, 2:07 AM
  • m

    Mahmoud MH

    12/16/2017, 4:53 AM
    Hi everyone, Iโ€™m new here
    ๐Ÿ‘‹๐Ÿป 1
    n
    • 2
    • 1
  • u

    user

    12/16/2017, 5:03 AM
    @agartha commented on @Andrew Schreiberโ€™s file

    https://prisma.slack.com/files/U7PGDP70V/F8FKMS9R8/q.pngโ–พ

    : The new dashboard is not yet available. You are seeing the right console.
  • m

    Maslov

    12/16/2017, 6:20 AM
    hello, will I lost the data if I will push new schema changes in graphcool cli project?
  • m

    Maslov

    12/16/2017, 6:20 AM
    I want to add one extra field in type, but itโ€™s on production
    a
    • 2
    • 9
  • t

    topaz

    12/16/2017, 8:16 AM
    Anyone done the "authentication-with-email-and-password-for-react-and-apollo" tutorial? I keep getting this error..
    n
    • 2
    • 1
  • t

    topaz

    12/16/2017, 8:16 AM
  • u

    user

    12/16/2017, 10:17 AM
    @max commented on @topazโ€™s file

    https://prisma.slack.com/files/U89TDE4KY/F8GGUT6QN/screen_shot_2017-12-16_at_7.15.42_pm.pngโ–พ

    : @topaz In order to pull up a database of Q&A, questions should be posted in the graphcool forum. What resolver/function are you trying to user when this error occurs? Looks like it's returning null
  • b

    basanth

    12/16/2017, 10:33 AM
    Hi in my app I have total number of rooms and number of rooms booked and these two are in two different tables. So based on the number of rooms booked I need to change the total number of rooms. so, how can I write query to achieve this ?
    m
    c
    • 3
    • 3
  • w

    wooyol

    12/16/2017, 1:22 PM
    when I store files in graphcool cloud, the file size is counted as database size, and I'm charged for the size?
  • t

    timnovis

    12/16/2017, 1:52 PM
    Hey, I'm using graphcool cloud with the email authentication enabled, I can create users but when I try and return the token in the response I'm getting
    GraphQL error: Cannot query field 'token' on type 'User'.
    . My mutation is this:
    Copy code
    mutation SignupUserMutation(
        $email: String!
        $password: String!
        $username: String
      ) {
      createUser(authProvider: {
        email: {
          email: $email,
          password: $password,
        },
      }, username: $username) {
        id
        token
      }
      }
    r
    • 2
    • 1
  • c

    chakrihacker

    12/16/2017, 2:03 PM
    Hi, I have a local graphcool, I want to deploy it to cloud, how can I do it??
    l
    • 2
    • 2
  • r

    rajit

    12/16/2017, 3:17 PM
    Does anyone have an example or recommendation for how to manage email verification with GraphCool? I've got the email-password template running, I'm imagining the
    signupUser
    resolver could do what it does, but have
    verified: false
    in the
    User
    entry.
    authenticateUser
    could check for
    verified: true
    and there could be a new
    verifyUser
    resolver. A subscription could watch unverified users getting created and send an e-mail with a generated token which is then verified by
    verifyUser
    . That's my idea but I'm wondering if anyone can make any other recommendations or offer some working examples. Cheers!
    ๐Ÿ‘๐Ÿป 1
    r
    • 2
    • 2
  • r

    radicand

    12/16/2017, 3:27 PM
    for create operations, outside of a custom mutation function, is there any way to enforce certain field values (e.g., the creating user_id must be set on X field and can't be forged?)
  • r

    rajit

    12/16/2017, 3:32 PM
    the example you gave of
    user_id
    , I think if you use a relation then it'll be verified for you
  • r

    radicand

    12/16/2017, 3:33 PM
    thanks, i'll explore that
  • r

    rajit

    12/16/2017, 3:33 PM
    This is the message I get if I try to add an invalid relation:
    Copy code
    "message": "You are referencing a node that does not exist. Please check your mutation to make sure you are only creating edges between existing nodes. Id if available: "
1...473474475...637Latest