https://www.prisma.io/ logo
Join Slack
Powered by
# orm-help
  • e

    Emi

    05/02/2018, 12:04 PM
    With this schema:
    Copy code
    type Section {
      id: ID! @unique
      title: String!
      subsections: [Section!]! @relation(name: "SectionSubsections", onDelete: CASCADE)
      insideSection: Section @relation(name: "SectionSubsections")
    }
    I'm deleting a Section node and I expect all subsections to also being deleted (due to the
    onDelete: CASCADE
    ). Nevertheless, all subsections are not deleted, they just "disconnects" its relation from
    insideSection
    field. What am I doing wrong?
  • r

    rein

    05/02/2018, 12:41 PM
    I'm getting connect ETIMEDOUT errors when Im trying to pass a larger number of mutations(500) to my zeit now endpoint. Could someone perhaps tell me what I am doing wrong? This used to be no problem at all when using Graphcool Framework
    h
    m
    n
    • 4
    • 36
  • m

    mrboutte

    05/02/2018, 1:21 PM
    Does anyone know if it's possible to export the data from apollo-engine. For example, if I wanted to dump it out into a csv file
  • m

    Mpdev

    05/02/2018, 1:29 PM
    hey all ! , I'm just messing with graphcool/ember-apollo , and i have a very simple layout, but when i add another field to my model and of course add it to the pipeline , (create/retrieve) i get an error which states that my new field can't be found. Happy to provide any detail , I'm just new to this so i don't know what i should give you beforehand
    m
    • 2
    • 6
  • h

    halborg

    05/02/2018, 1:45 PM
    What’s the best way to keep Typescript definitions in sync with the GQL schema?
    n
    t
    • 3
    • 14
  • m

    Mike

    05/02/2018, 1:48 PM
    Having a query like this:
    Copy code
    recruitment {
                id
                symbols {
                    id
                  	recruitmentText(filter: {
                      recruitment: {
                        id:"cj9rnf5cuc84b0116syouiqq9"
                      }
                    }) {
                  		text
                		}
                }
            }
    Is there some way to not having to define the recruitmentId in the recruitmentText filter, and just having it filter by the parent recruitment-context instead?
    n
    • 2
    • 6
  • j

    Julien

    05/02/2018, 3:45 PM
    prisma import takes a while and times out. is there a way to increase the timeout?
    n
    • 2
    • 17
  • j

    Julien

    05/02/2018, 3:48 PM
    the export zip file is just below 4M
  • p

    picosam

    05/02/2018, 4:49 PM
    Hello! I remember there was an example about sending emails from the Prisma Server. May someone point me to where that was please?
  • p

    pasa

    05/02/2018, 7:12 PM
    Hey everybody, when executing a prisma deploy with the post deployment hooks mentioned in the upgrade guide, I receive the following error:
    n
    • 2
    • 20
  • p

    pasa

    05/02/2018, 7:12 PM
    Copy code
    Running graphql get-schema --project database !
     ▸    'EACCES': spawn EACCES
  • b

    benwis

    05/02/2018, 8:08 PM
    I'm trying to setup a digitalocean droplet, and I'm a little stuck. I copied the docker-compose.yml file from a local install that creates a docker prisma and postgresql instance, and ran it with docker-compose up -d It's running nicely, and I'm able to go the /cluster endpoint. However, I'm having trouble telling the servers prisma cli that it exists. As such, I'm I'm not sure how to get the secret. I think I need to add a local: section to ~/.prisma/config.yml but I don't know hot get the cluster-secret. Any guidance?
    n
    • 2
    • 1
  • j

    Jscott388

    05/02/2018, 10:08 PM
    So is there somewhere I can see the sql statements for the models generated?
    n
    • 2
    • 1
  • t

    Till

    05/02/2018, 10:58 PM
    could someone hook me up to graph.cool permission system how can i make allType query return only a subset of results (those that the user is eligible to read)
  • b

    benwis

    05/03/2018, 4:59 AM
    Does anyone have a sample .env file for the postgresql connector?
    n
    • 2
    • 2
  • b

    benwis

    05/03/2018, 4:59 AM
    And how to change the secret key of a deployed docker instance
    n
    • 2
    • 7
  • j

    john

    05/03/2018, 5:02 AM
    What should I put in the schema.graphql in src folder of Prisma. It is not generating anything with my datamodel, And the index.js contains some dummy resolvers not generating anything under my data model. Do i need to write myself the resolvers for Prisma generated schema? And how i connect with my own Apollo graphql schema.
    🤔 2
    n
    • 2
    • 2
  • l

    Lam Kieu

    05/03/2018, 7:50 AM
    Hi guys, I have some questions. I don't know much about how Prisma and Docker works. For example if I want to update Prisma Server from 1.7.1 to 1.7.4. I have to go to where
    docker-compose.yml
    is, and run
    docker-compose pull
    right? And will I losing old data after updated?
  • j

    Jim

    05/03/2018, 8:01 AM
    Im trying to get started with react-fullstack-basic. Ive added a new content type to database/datamodel.graphql which I can interact with via the playground, however I cant access the data in React. Ive added the query in src/schema.graphql. Do I need to do something else?
    k
    • 2
    • 2
  • r

    rein

    05/03/2018, 8:27 AM
    hey guys, I was wondering if anybody here used graphql-yoga in conjunction with scheduled/recurring events. For now, I've been using lambda functions for that, but I guess I could use cron or something like that? Does anybody have any experience with that?
  • z

    zonofthor

    05/03/2018, 8:52 AM
    hi - is there any github example of React app + Prisma w/ custom resolvers? (Google didn't get me anywhere)
    s
    k
    m
    • 4
    • 8
  • j

    john

    05/03/2018, 9:26 AM
    Can I call directly prisma generated queries and mutation of Prisma.graphql from my apollo graphql server without creating any resolversin Prisma. Is it possible do that?
    n
    • 2
    • 2
  • h

    hamdi

    05/03/2018, 11:02 AM
    hello i want to cache graphql using service worker you can help me
  • c

    carstenbaumhoegger

    05/03/2018, 2:53 PM
    hey! I’m new to the GraphQL ecosystem (coming from CakePHP) and just discovered prisma, which seems to be the perfect fit for the backend of our next project. I installed prisma via npm and just did the
    Getting started
    tutorial. When I want to open the playground it displays
    graphqlconfig" file is not available in the provided config directory: ...
    . Is this my fault or is the tutorial outdated? 🤔 thanks in advance!
    n
    • 2
    • 11
  • m

    Maxime Scibetta

    05/03/2018, 4:23 PM
    Hey guys I use graphcool and make authentication with typescript but when I've more of 6 params there

    https://puu.sh/AfjUs/00b4ff25fa.png▾

    I've this error without test params she works perfectly
    Copy code
    {
      "data": {
        "signupUser": null
      },
      "errors": [
        {
          "locations": [
            {
              "line": 2,
              "column": 3
            }
          ],
          "functionError": "An unexpected error occured during signup.",
          "path": [
            "signupUser"
          ],
          "code": 5001,
          "message": "function execution error: An unexpected error occured during signup.",
          "requestId": "eu-west-1:simple:cjgqqorfh2inp01506h6959gy"
        }
      ]
    }
  • p

    pasa

    05/03/2018, 5:52 PM
    Hey everybody! Is it possible to disable the playground interface of the running GraphQL (yoga) server? I'm just talking about the UI, not the API itself.
    k
    • 2
    • 2
  • j

    Jscott388

    05/03/2018, 7:12 PM
    What in the world is going on with the cli, docs need updated or something, I can't get this thing ro run anymore...
    n
    • 2
    • 1
  • j

    Jscott388

    05/03/2018, 7:35 PM
    Error: Could not connect to database. Connection terminated unexpectedly
  • c

    calvinhobbes92

    05/03/2018, 7:36 PM
    So Im working on a project and was wondering if anyone knows how to use prisma for notifications. Does anyone have any examples for me to look at?
    n
    • 2
    • 1
  • j

    Jscott388

    05/03/2018, 7:48 PM
    So does the use existing database require docker????
    n
    • 2
    • 3
1...192021...637Latest