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

    Hinrichs

    12/20/2017, 5:20 PM
    also, is this an ok channel to post this kind of stuff in or should i go elsewhere 🙂
    n
    • 2
    • 1
  • u

    uyasarkocal

    12/20/2017, 5:50 PM
    Hey guys, "graphcool local up" is not working for me, cli says "unknown command: local" . Am I missing something?
    n
    • 2
    • 1
  • g

    Gordan

    12/20/2017, 5:59 PM
    Hi everybody, I'm new to graphcool, actually working through this course: https://www.howtographql.com/react-relay/ I'm having problems with
    graphcool init
    using this schema:
    Copy code
    type User @model {
      id: ID! @isUnique
      createdAt: DateTime!
      updatedAt: DateTime!
      name: String!
      links: [Link!] @relation(name: "UsersLinks")
      votes: [Vote!] @relation(name: "UsersVotes")
    }
    
    type Link @model { 
      id: ID! @isUnique
      createdAt: DateTime!
      updatedAt: DateTime!
      url: String!
      description: String!
      postedBy: User @relation(name: "UsersLinks")
      votes: [Vote!] @relation(name: "VotesOnLink")
    }
    
    type Vote @model {
      id: ID! @isUnique
      createdAt: DateTime!
      updatedAt: DateTime!
      user: User @relation(name: "UsersVotes")
      link: Link @relation(name: "VotesOnLink")
    }
    (taken from here: https://www.graphqlbin.com/hn-relay.graphql) Getting an error, saying:
    Copy code
    The relation field `links` has the wrong format: `[Link!]` Possible Formats: `Link`, `Link!`, `[Link!]!`
    I'm using graphcool version 0.4 If anyone would be able to give me a hand, I'd appreciate it very much Thanks!
    n
    m
    • 3
    • 3
  • a

    agartha

    12/20/2017, 6:00 PM
    Did something happen? Error running
    gc deploy
    (1.0)
    Copy code
    ERROR: GraphQL Error (Code: 405)                             
                                                                 
    {                                                            
      "error": "HTTP method not allowed, supported methods: GET",
      "status": 405                                              
    }
    ✅ 1
    • 1
    • 1
  • a

    agartha

    12/20/2017, 6:18 PM
    I'm getting an other error after deployment:
    Copy code
    "Whoops. Looks like an internal server error. Please contact us from the Console (<https://console.graph.cool>) or via email (support@graph.cool) and include your Request ID: api:api:cjbfds7du00a00155clwikh9f"
    ✅ 1
    • 1
    • 1
  • m

    mickdekkers

    12/20/2017, 7:03 PM
    Does Graphcool support ordered arrays? I'm currently making a quiz app where a
    Quiz
    model has an associated list of `Question`s (many to many relation), and I'd like to be able to guarantee the order that these `Question`s are returned in.
  • m

    mickdekkers

    12/20/2017, 7:07 PM
    So this is basically what I've got right now (
    Answer
    model and relations excluded):
    Copy code
    type Quiz @model {
      name: String!
      questions: [Question!]! @relation(name: "QuizQuestions")
    }
    
    type Question @model {
      text: String!
      quizzes: [Quiz!]! @relation(name: "QuizQuestions")
    }
    m
    • 2
    • 1
  • o

    Omer Arie Goldberg

    12/20/2017, 7:23 PM
    hey guys
  • o

    Omer Arie Goldberg

    12/20/2017, 7:23 PM
    does anyone have a working example of using the file upload endpoint?
  • o

    Omer Arie Goldberg

    12/20/2017, 7:24 PM
    im reading a json file, stringifying its content and trying to upload to the server. keep on getting 500 errs though…. if anyone could point me in the right direction thatd be great. thanks@
  • o

    Omer Arie Goldberg

    12/20/2017, 7:24 PM
    !
  • o

    Omer Arie Goldberg

    12/20/2017, 7:24 PM
  • j

    johhansantana

    12/20/2017, 8:13 PM
    is there a way to rollback a deployment?
  • r

    rein

    12/20/2017, 9:21 PM
    Can I use enums in the data model file? I just made some changes but my deployment is stuck on 'Applying changes...'
    l
    n
    • 3
    • 4
  • r

    rein

    12/20/2017, 10:36 PM
    is there anything here that is known to trigger a stuck on 'applying changes' ?
    Copy code
    type Update {
      id: ID! @unique
      createdAt: DateTime!
      updatedAt: DateTime!
      text: String!
      creator: User! @relation(name: "UserUpdates")
    }
    
    type User {
      id: ID! @unique
      email: String! @unique
      firstName: String!
      lastName: String!
      profilePicture: String!
      providerId: String!
      updates: [Update!]! @relation(name: "UserUpdates")
    }
    i
    • 2
    • 2
  • g

    Graham Ballantyne

    12/21/2017, 12:05 AM
    Anyone else getting errors when doing
    graphql create
    (using the beta version)? The only one I can get it to work with is the
    react-fullstack-basic
    one; everything else dies with
    Copy code
    graphql create test 
    ? Choose GraphQL boilerplate project: node-basic              Basic GraphQL server (incl. database)
    [graphql create] Downloading boilerplate from <https://github.com/graphql-boilerplates/node-graphql-server/archive/master.zip>...
    events.js:183
          throw er; // Unhandled 'error' event
          ^
    
    Error: invalid signature: 0xa292e0fc
        at /Users/grahamb/.nvm/versions/node/v8.9.3/lib/node_modules/graphql-cli/node_modules/unzip/lib/parse.js:59:13
        at runCallback (timers.js:789:20)
        at tryOnImmediate (timers.js:751:5)
        at processImmediate [as _immediateCallback] (timers.js:722:5)
    a
    • 2
    • 7
  • q

    qsys

    12/21/2017, 2:14 AM
    Hey everyone. I'm still struggling to have a decent integration between auth0 and graphcool. tl;dr : auth0 is great for user mgmt. It provides authentication and it's very easy to implement authorization as well. graphcool is a very cool solution for 'serverless' applications. It seems to have good integration with auth0, but the authorization system (and it's permission queries) don't integrate well. The fundamental question is: how to integrate authorization info from a JWT (http authorization header) in the permission system of graphcool? (I'd expect the http authorization header to be exposed in the permission queries of graphcool but they aren't, which is extremely weird to me). see also: https://github.com/graphcool/framework/issues/251 https://github.com/graphcool/framework/issues/137
  • q

    qsys

    12/21/2017, 2:31 AM
    @nilan Other question: is there any info on graph.cool and GDPR?
  • q

    qsys

    12/21/2017, 3:03 AM
    And another question: when I open the console of my project, it looks pretty different from what's shown in https://www.graph.cool/cloud/ :
  • q

    qsys

    12/21/2017, 3:03 AM
  • q

    qsys

    12/21/2017, 3:04 AM
  • a

    agartha

    12/21/2017, 3:04 AM
    @qsys The new dashboard is not yet released
  • q

    qsys

    12/21/2017, 3:04 AM
    Do I have another version ... oh
  • q

    qsys

    12/21/2017, 3:04 AM
    sorry 🙂
  • q

    qsys

    12/21/2017, 3:05 AM
    any release date estimation?
  • a

    agartha

    12/21/2017, 3:06 AM
    I don't know. Someone from Graphcool will probably be able to give an estimate. @nilan?
  • q

    qsys

    12/21/2017, 3:06 AM
    kk, thx
  • m

    Mars

    12/21/2017, 8:25 AM
    Hello guys, I have a question on this: https://www.howtographql.com/react-relay/1-getting-started/
    n
    • 2
    • 2
  • m

    Mars

    12/21/2017, 8:26 AM
    I've changed "Link" part to make the playground example work. Is that the right thing to do or mutation means changing the schema by itself?
  • m

    Mars

    12/21/2017, 8:27 AM
    I got the error saying "Unknown argument 'description' on field 'createLink' of type 'Mutation'. (line 3, column 5):\n description: \"The coolest GraphQL backend 😎\",\n ^", otherwise
1...478479480...637Latest