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

    James

    03/13/2018, 9:48 PM
    how should i go about building graphql api for my database? it's mysql with 600 tables, and each user of the db can only query/alter if their tenant_id matches
  • j

    James

    03/13/2018, 9:50 PM
    i think my aim is to have 2 react components that each do
    {countUsers}
    or something, and have them sent as 1 hit to graphql, which will translate into something like
    select count(*) from users where tenant_id=$ID
    where $ID comes from a php _SESSION
  • m

    McArthur

    03/13/2018, 11:32 PM
    I’m new to docker. Im trying to deploy prisma to digital ocean. It all looks good when I run
    docker-compose up -d
    but I get an
    ECONNREFUSED
    when I deploy. Looking at the docker containers the status of prisma is always
    Restarting
    . Makes me think it is just crashing on start and trying to start again. Anyone know how I might get logs or has run into a similar issue?
  • m

    McArthur

    03/13/2018, 11:35 PM
    Got some logs. Seems like some issue with config but it looks ok to me.
    Could not resolve substitution to a value: ${SCHEMA_MANAGER_SECRET}
    • 1
    • 1
  • h

    harmony

    03/13/2018, 11:41 PM
    make sure that environment variable exists
  • e

    emerson

    03/14/2018, 1:35 AM
    I'm looking to use vue-apollo in my vue app. 1) Which graphcool tool, if any, would aide me in creating an api / graphql client that vue-apollo consumes? This will be my first graphql project, and I'm a bit confused about what cli to use for scaffolding. 2) there seems to be various links between apollo and graphcool tutorials, but is there competition between the two organizations or are they complementary?
  • s

    sjc67

    03/14/2018, 2:50 AM
    Hey! Does anyone have any good resources on how to implement role based authentication using graphcool? Example: I have a type X. I need to restrict some users to only read permissions on type X, while other users (the owners of type X) have update and read permissions. I also need an admin role that has update, read, create, and delete permissions on type X. I have tried looking on my own for some helpful tips but have been unsuccessful. I am hoping this Slack channel can help me out!
    b
    • 2
    • 1
  • m

    Moritz

    03/14/2018, 8:47 AM
    @Moritz pinned a message to this channel.
  • m

    Moritz

    03/14/2018, 8:48 AM
    Hey, any ideas?
  • s

    sakhmedbayev

    03/14/2018, 1:20 PM
    guys, where can I find repo for prisma's boilerplates?
    k
    • 2
    • 2
  • m

    Moritz

    03/14/2018, 1:55 PM
    Hi after, deleting the generated folder and regenerating I get the issue
    Error: ENOENT: no such file or directory, open 'XXX/src/generated/prisma.graphql'
    . This is happening because prisma now names their generated files
    database
    . I have the following script to work around:
    Copy code
    #!/bin/bash
    
    set -x
    
    rm -rf src/generated/
    prisma deploy
    graphql get-schema -p database -o src/generated/prisma.graphql
    graphql prepare -p database -o src/generated
    rm src/generated/prisma.graphql
    cp src/generated/database.graphql src/generated/prisma.graphql
    cp src/generated/database.ts src/generated/prisma.ts
    However, I think prisma should take this task... Should I open a git issue? is there already one? Or am I missing some config?
    j
    • 2
    • 5
  • q

    qsys

    03/14/2018, 2:20 PM
    I'm trying to add environmental variables based on the environment: https://www.graph.cool/forum/t/1-0-different-environments-different-graphcool-yml-files/2105 So, I have a file `.env`:
    Copy code
    ENV1="..."
    ENV2="..."
  • q

    qsys

    03/14/2018, 2:22 PM
    but graphcool cli doesn't find the env variables:
    Copy code
    $ graphcool deploy -e .env 
    [WARNING] in [...]/graphcool.yml: A valid environment variable to satisfy the declaration 'env:ENV1' could not be found.                                                                                                                                                                 
    [...]
  • q

    qsys

    03/14/2018, 2:22 PM
    The same error occurs when I use
    graphcool deploy --env-file .env
  • q

    qsys

    03/14/2018, 2:24 PM
    Copy code
    $ graphcool version
    graphcool-framework/0.11.5 (linux-x64) node-v8.10.0
  • a

    anton-b

    03/14/2018, 3:03 PM
    There seems to be a problem with the Prisma documentation: https://www.prismagraphql.com/docs/ , The search functionality is not returning anything
    n
    • 2
    • 1
  • p

    picosam

    03/14/2018, 3:50 PM
    Hello, in a directive resolver function argument (
    (next, source, args, ctx: Context)
    ) I cannot find what
    source
    is really; anyone’s got a link to docs somewhere?
    l
    • 2
    • 3
  • j

    johhansantana

    03/14/2018, 3:50 PM
    anyone else having problems with their prisma shared cluster? I'm getting:
    Copy code
    Whoops. Looks like an internal server error. Search your cluster logs
    m
    • 2
    • 1
  • k

    KATT

    03/14/2018, 3:51 PM
    yeah
  • k

    KATT

    03/14/2018, 3:51 PM
    Whoops. Looks like an internal server error. Search your cluster logs for request ID: api:api:cjer9jkbfaiig0905742fe7rf
  • j

    johhansantana

    03/14/2018, 3:51 PM
    it's been like this for a while now
    m
    • 2
    • 1
  • m

    Michael

    03/14/2018, 3:53 PM
    it seems graph.cool doesn’s support cascade delete but Prisma did?
    j
    h
    d
    • 4
    • 6
  • n

    nilan

    03/14/2018, 4:14 PM
    Thanks, the Prisma Cloud US development cluster is currently under maintenance: https://status.prismagraphql.com/
    👍 1
    • 1
    • 1
  • m

    Moritz

    03/14/2018, 4:25 PM
    Hi, how can I seed data with cross dependencies, i.e. first seed a user and then use this users id to create a dependent object in
    seed.graphql
    ?
    n
    k
    • 3
    • 8
  • t

    terion

    03/14/2018, 4:46 PM
    Hello. I have another low-level question, posted it on forum right away, as @nilan pointed earlier https://www.graph.cool/forum/t/manually-generate-prisma-schema-and-resolvers/2830 I've dived in source of prisma cli tools, but had no luck to find solution. It is about very low-level stuff, so I sincerely ask Prisma developers to help with this, because they are only who really can @dpetrick An I promise, when all the stuff that I am building will work, I'll right a useful showcase based on this for docs 🙂
    l
    d
    • 3
    • 5
  • m

    McArthur

    03/14/2018, 4:58 PM
    Anyone else seeing this issue trying to deploy to a private cluster on prisma cloud?
  • m

    McArthur

    03/14/2018, 4:58 PM
    The server was not able to produce a timely response to your request.\r\nPlease try again in a short while!
    n
    • 2
    • 1
  • m

    manticarodrigo

    03/14/2018, 6:50 PM
    I’ve been creating posts without images and fetching it with null value on the client-side. For some reason, now it’s returning an empty array. I’m logging the value of images on the server and it’s null. Does anyone know why I’m getting empty array instead of null?
    Post_Resolver.txt
  • r

    rodmatos

    03/14/2018, 7:35 PM
    Hey there everyone! I'm trying to import some data using the prisma CLI and the value for the field id is not auto generated. Do you guys use any tool to generate ids that match the GraphQL ID scalar type?
    n
    • 2
    • 1
  • p

    piscis

    03/14/2018, 8:47 PM
    Hi does anyone know if its possible to add descriptions to a model using Prisma and make them appear in the introspection query?
    Untitled.js
1...608609610...637Latest