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

    giffurd

    02/09/2018, 3:40 AM
    hi all. I'm struggling with the permissions API
  • g

    giffurd

    02/09/2018, 3:41 AM
    Copy code
    curl '<https://api.graph.cool/simple/v1/__PROJECTID__/permissions>' \
    -H 'Authorization: Bearer __TOKEN__' \
    -H 'Content-Type: application/json' \
    -d '{"query":"{\n  SomeUserExists\n}"}'
  • g

    giffurd

    02/09/2018, 3:42 AM
    When I run this (with PROJECTID AND TOKEN replaced with the correct info) it return:
  • g

    giffurd

    02/09/2018, 3:42 AM
    Copy code
    {
      "data": null,
      "errors": [
        {
          "message": "Cannot query field 'SomeUserExists' on type 'Query'. (line 2, column 3):\n  SomeUserExists\n  ^",
          "locations": [
            {
              "line": 2,
              "column": 3
            }
          ]
        }
      ]
    }
  • g

    giffurd

    02/09/2018, 3:44 AM
    After extensively combing through the forum, I still don't understand why it's not working
  • g

    giffurd

    02/09/2018, 4:09 AM
    ^ figured it out. Had to change permissions in the graphcool.yml file to authenticated: false, deploy, change back to authenticated: true
  • g

    giffurd

    02/09/2018, 4:09 AM
    which seems like a pretty big bug
  • d

    divyendu

    02/09/2018, 6:16 AM
    A question about the generated prisma API, think a datamodel type Card The generated API is
    Copy code
    createCard(data: CardCreateInput!): Card!
    updateCard(data: CardUpdateInput!, where: CardWhereUniqueInput!): Card
    deleteCard(where: CardWhereUniqueInput!): Card
    Update and Delete return optional
    Card
    but create returns
    Card!
    - why so? what if there is an error while created? What would be the content of data part of response, since it cannot be null?
  • d

    divyendu

    02/09/2018, 6:44 AM
    Also, is there a way to manually seed data from a graphql file? I used seed in prisma.yml but path was wrong 😅 so, I had to nuke local and run the command again.. Something like.
    prisma seed <path>
    can come in handy! OR we can check for seed path and fail fast before deploying!
  • h

    hari mohan

    02/09/2018, 8:22 AM
    when teacher create then all students auto insert in teacher modal. how can i do?
    Untitled.scpt
  • v

    vageskar

    02/09/2018, 8:31 AM
    When I press this button, I am taken to https://www.prismagraphql.com/docs/quickstart/basic/basic/basic-xil8ahdayo, which is blank.
  • v

    vageskar

    02/09/2018, 8:32 AM
    Here's the console output. All network responses are 200s.
  • m

    Moritz

    02/09/2018, 9:06 AM
    @nilan, earlier you mentioned to me in a response to a thread that I was able to use 'raw' subscriptions (Since the native apollo libs dont currently support subscriptions) Could you give me a link or an explanation what you mean by it? THX!
  • u

    user

    02/09/2018, 9:40 AM
    @Emi commented on @kitze’s file

    https://prisma.slack.com/files/U38TMFV39/F963JU8RH/1_efwl8iah2vec8n1yfknafq.pngâ–¾

    : Just curious. Are you using a custom UI interface or some kit? It looks great!
  • j

    jsan

    02/09/2018, 10:10 AM
    does anyone else having cors issue while working with graphcool web interface?
  • j

    jsan

    02/09/2018, 10:11 AM
    i can't create/update any function, every time I do, I get a No 'Access-Control-Allow-Origin' error
  • j

    jbonigomes

    02/09/2018, 12:04 PM
    Does anyone know a good tutorial for Prisma Schema Stitching?
  • j

    jbonigomes

    02/09/2018, 12:27 PM
    The true scenario we have is an existing MySQL db from which some tables should be 'GraphQLified'
  • u

    user

    02/09/2018, 1:11 PM
    @Fi1osof commented on @vageskar’s file

    https://prisma.slack.com/files/U96FPBEEQ/F96DCN4SX/image.pngâ–¾

    : https://www.prismagraphql.com/docs broken too
  • m

    max

    02/09/2018, 1:20 PM
    Has anyone been given access to the prisma cloud?
  • s

    senorcodecat

    02/09/2018, 1:25 PM
    You haven't?
  • s

    senorcodecat

    02/09/2018, 1:26 PM
    😛
    m
    • 2
    • 1
  • h

    hari mohan

    02/09/2018, 1:26 PM
    hey Guys, type restaurant { id: ID! @unique name: String! } #package type package { id: ID! @unique restaurant: [restaurant]! @default(value: [restaurant]) } .
  • h

    hari mohan

    02/09/2018, 1:27 PM
    can we pass default value in other database
  • h

    hari mohan

    02/09/2018, 1:29 PM
    ya any other method where I can insert default value to another modal where I have insert some value
  • f

    Fi1osof

    02/09/2018, 1:47 PM
    Who know how to install prisma local with custom mysql root password?
  • m

    m.b.iqbal

    02/09/2018, 1:58 PM
    How does the launching of prisma cloud effect the grahpcool cloud? Will graphcool cloud be discontinued?
    n
    • 2
    • 1
  • r

    rem

    02/09/2018, 4:13 PM
    Can someone point me in the direction of a pattern that says: get all objects from graph, then subscribe to changes?
  • p

    patstrz

    02/09/2018, 4:16 PM
    Hi All! I am getting the following error when starting a project with prisma and trying to deploy it:
    Copy code
    Error: patrick.strzelec~curv-prisma is not a valid name for a service name. It must start with a letter and may contain up to 30 letters, numbers, underscores and hyphens.: {"response":{"data":{"addProject":null},"errors":[{"locations":[{"line":2,"column":9}],"path":["addProject"],"code":4001,"message":"patrick.strzelec~curv-prisma is not a valid name for a service name. It must start with a letter and may contain up to 30 letters, numbers, underscores and hyphens.","requestId":
    Any ideas of how to deal with it ? I have been able to deploy succesfully in the past
    a
    • 2
    • 5
  • r

    Ryan Elkholy

    02/09/2018, 4:18 PM
    Are there any examples of Prisma with Relay Modern?
1...565566567...637Latest