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

    mattbryanswan

    12/11/2017, 8:05 PM
    similar, but different question... is it possible to get any feedback on signup.ts? It doesn't seem to write to the console or the playground, so I just get "unexpected error" messages. If I could get some visibility into where it's failing, I could better debug it.
    l
    • 2
    • 3
  • j

    johhansantana

    12/11/2017, 8:45 PM
    is there anyway to change the timezone of the graphcool server?
  • u

    user

    12/11/2017, 8:51 PM
    @iamclaytonray commented on @johhansantana’s file

    https://prisma.slack.com/files/U66MTT41M/F8CBVQKEV/image.png▾

    : That’s probably from the previous deployment
  • e

    ehodges

    12/11/2017, 10:03 PM
    Error: ./src/components/CreateLink.js Syntax error: Unexpected token (59:6) 57 | 58 |
    59 | const CREATE_LINK_MUTATION = gql`
    | ^ 60 | mutation CreateLinkMutation($description: String!, $url: String!, $postedById: ID!) { 61 | createLink( 62 | description: $description, file is here: https://github.com/erichodges/react-gql-tutorial/blob/master/hackernews-react-apollo/src/components/CreateLink.js
    l
    • 2
    • 3
  • f

    Fitch

    12/12/2017, 1:21 AM
    Anyone know how to get support after hours XD
    i
    a
    • 3
    • 6
  • m

    mj

    12/12/2017, 5:50 AM
    Graphcool seems to allow unknown decorators through in the types.graphql file. which it never used to allow. please can you keep this behaviour? I’m looking to reuse the types.graphql files for something outside of graphcool I.e.
    Copy code
    type User @model {
      id: ID! @isUnique
      name: String @myCustomDecorator(name: "VALUE")
      dateOfBirth: DateTime
      age: Int @myCustomDecorator(name: "VALUE")
    }
  • m

    mj

    12/12/2017, 5:51 AM
    this behaviour is awesome
  • m

    mj

    12/12/2017, 5:51 AM
    @nilan ^ 🙂
  • m

    mj

    12/12/2017, 6:14 AM
    “imagine building something else ontop of this schema”
  • s

    Steven Sacks

    12/12/2017, 6:33 AM
    I'm having an issue deploying
    a
    • 2
    • 2
  • s

    Steven Sacks

    12/12/2017, 6:33 AM
    Copy code
    Global
        ✖ Function with name 'users-update' has invalid payloadName: 'User'
  • s

    Steven Sacks

    12/12/2017, 6:33 AM
    Copy code
    type User {
        id: ID!
    }
    
    extend type Mutation {
        updateUser(
            id: ID!
            organizationId: ID!
            firstName: String!
            lastName: String!
            roles: [String!]!
        ): User
    }
    m
    • 2
    • 1
  • s

    Steven Sacks

    12/12/2017, 6:34 AM
    Copy code
    users-update:
          type: resolver
          schema: ./src/users/update/type.graphql
          handler:
            code:
              src: ./src/users/update/index.js
  • s

    Steven Sacks

    12/12/2017, 6:34 AM
    What am I doing wrong?
  • l

    Lotafak

    12/12/2017, 7:49 AM
    I have similar problem as @Steven Sacks after updating npm I started to receive
    Copy code
    Global
     ✖ Function with name 'authenticate' has invalid payloadName: 'AuthenticateUserPayload'
    for authentication method from email-password template that was working before!
  • s

    Steven Sacks

    12/12/2017, 7:50 AM
    It's because types have to be unique
  • s

    Steven Sacks

    12/12/2017, 7:51 AM
    I had to make type UpdateUser
  • s

    Steven Sacks

    12/12/2017, 7:57 AM
    How can I clear my graph.cool logs locally?
  • s

    sjm

    12/12/2017, 9:19 AM
    Hi, since it is possible to deploy a
    graphcool service
    locally via Docker, is it also possible to deploy this Docker image to an RaspberryPi ? Has anyone ever tried that by any chance?
    m
    n
    • 3
    • 3
  • a

    alexc

    12/12/2017, 12:50 PM
    what version of the auth0 api is supported by graphcool?
    n
    • 2
    • 1
  • j

    jovantoskic

    12/12/2017, 1:01 PM
    Anyone knows how to solve the next error, “typeDefs must be a string or array, got an object” ?
    n
    • 2
    • 1
  • e

    ehodges

    12/12/2017, 2:58 PM
    Deployment: Graphcool handles the backend as a service. Suggestions on where to host the front end for React/Apollo? I need to know more about how to deploy the front end also. Ok, I’m looking at Zeit.co which seems cool.
    o
    • 2
    • 8
  • o

    Oleg Galaburda

    12/12/2017, 3:17 PM
    How do you test your GraphQL requests? I have a query or a mutation and I want to know if its formed correctly. are you doing it string === string or there are better ways? It may have different order of result fields but still be valid.
    w
    n
    • 3
    • 6
  • b

    Butch

    12/12/2017, 3:21 PM
    Anyone using flow in their backend graphcool functions?
    o
    • 2
    • 3
  • h

    huv1k

    12/12/2017, 3:48 PM
    Hey i have this query:
    Copy code
    query {
      allCategories(filter:{
       	translations_every:{
          language:{
            name: "EN"
          }
        }
      }) {
        name
        translations {
          text
          language {
            name
          }
        }
      }
    }
    It should query all categories where translations language name is "EN" right?
    m
    • 2
    • 1
  • b

    Butch

    12/12/2017, 5:06 PM
    Can you define two permission query functions on one endpoint? Scenario: USER can't read/write on any organization ADMIN can read/write on organizations they belong to only SUPER_ADMIN can read/write on any organization
  • b

    Butch

    12/12/2017, 5:07 PM
    Copy code
    query permitViewOrg($user_id: ID!, $node_id: ID!) {
      SomeOrganizationExists(filter: {
        id: $node_id
        users_some: {
          id: $user_id
          role_in: [ADMIN, SUPER_ADMIN]
        }
      })
    }
    This covers it for reading the org they belong to, but limits usage for super admins
    m
    • 2
    • 5
  • t

    tekk

    12/12/2017, 6:24 PM
    Getting errors from the API again:
    Copy code
    {
      "error": "Syntax error while parsing GraphQL query. Invalid input \"query {\\n  allGames()\", expected OperationDefinition, FragmentDefinition or TypeSystemDefinition (line 1, column 1):\nquery {\n^"
    }
    i
    j
    • 3
    • 6
  • t

    tekk

    12/12/2017, 6:24 PM
    From Playground ^
  • d

    daniel

    12/12/2017, 6:53 PM
    anybody else having 504 errors this morning?
1...466467468...637Latest