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

    nilan

    05/07/2018, 7:49 PM
    Hey @Emil Johansen
    e
    • 2
    • 7
  • n

    nilan

    05/07/2018, 7:51 PM
  • h

    hamdi

    05/07/2018, 9:35 PM
    hi friends i have a question when i use function date in Schema (mongoose) date: { type: Date , default: Date.now }, date display like this 2018-05-07T213057.642Z who have idea how i display date well format
    m
    • 2
    • 1
  • d

    drk

    05/08/2018, 12:11 AM
    Is there any writing on when you’d want to use AWS AppSync over Prisma? Or is there a case where you’d use both?
    m
    • 2
    • 2
  • m

    medelman

    05/08/2018, 1:46 AM
    IMHO, there are two reasons you would use AppSync over Prisma: (1) You really love Velocity Template Language; (2) You absolutely cannot live without offline support.
  • t

    TangoJuliett

    05/08/2018, 4:24 AM
    Is there no longer a way to see the generated schema file in Prisma?
    n
    • 2
    • 2
  • f

    Fahad

    05/08/2018, 5:14 AM
    console.graph.cool is not loading in my browsers? is this link is down ?
    j
    n
    • 3
    • 2
  • j

    Jim

    05/08/2018, 6:29 AM
    For this data model can I query how many users are in each group?
    Copy code
    type User {
      id: ID! @unique
      groups: [Group!]!
    }
    
    type Group {
      id: ID! @unique
      name: String!
      users: [User!]!
    }
    I can return the user object but all I actually need is the count. You could do this with Graphcool BaaS
    Copy code
    groups {
        name
        category {
          name
        }
        users {
          id
        }
      }
    }
    w
    • 2
    • 2
  • d

    damon.chen

    05/08/2018, 7:19 AM
    I really hope Prisma can support connect with existing database soon.
    h
    • 2
    • 2
  • h

    horia.ancas

    05/08/2018, 8:29 AM
    were the
    prisma init
    templates removed from prisma cli?
    n
    • 2
    • 1
  • k

    kdieubenit

    05/08/2018, 9:20 AM
    hello guys i need some help
  • k

    kdieubenit

    05/08/2018, 9:21 AM
    how can i rebuild my app on itunesconnect?
  • m

    michieldewilde

    05/08/2018, 11:45 AM
    Hello. I have the following question how do I delete all of the connected nodes of a property from an object. For example: a toy has wheels. Is there something like delete: true for all the connected wheels.
    Copy code
    mutation updateToy {
      updateToy(
        where: { id: "toyId" },
        data: {
          wheels: {
          	delete: true
          }
        }
      ) {
        id
        name
      }
    }
    n
    • 2
    • 1
  • m

    Matt

    05/08/2018, 12:04 PM
    hello! is the newest Prisma still using generated/prisma.graphql? I've got a problem with adding new fields to datamodel. Prisma deploy logs the field being created, but then database is throwing an 'Cannot query field' error
    n
    • 2
    • 1
  • r

    Raviv

    05/08/2018, 12:11 PM
    Does anyone have problems inserting data with slashes? A URL for example like http://.. I get a GraphQL syntax error response
    • 1
    • 1
  • g

    guille

    05/08/2018, 12:13 PM
    Hi, I have a chromeless question: In nightmarejs I used to do "conditional paths":
    Copy code
    nightmare
      .goto('http://...')
      .evaluate(()=> {
        return (document.querySelectorAll('.has-error').length > 0);
      })
      .then((has_error)=> {
        if (has_error) {
          return nightmare
            .insert('input.name', false)
            .insert('input.name', 'Lorem ipsum');
        } else {
          return nightmare;
        }
      })
      .click('button')
      .etc
    Is there anyway to do the same with chromeless?
  • t

    Tatsuyuki Ishi

    05/08/2018, 1:01 PM
    Is your
    docs-cli
    open source on GitHub? I'd like to contribute to make the docs easier to read on mobile
    n
    • 2
    • 2
  • c

    carstenbaumhoegger

    05/08/2018, 1:37 PM
    Hey! I just deployed my prisma service
    dev
    to
    prisma-eu1
    . Now I want to delete my service by typing
    prisma delete dev
    . The following error appears:
    Copy code
    {
      “data”: {
        “generateClusterToken”: null
      },
      “errors”: [
        {
          “message”: “Workspace dev does not exist”,
          “locations”: [
            {
              “line”: 3,
              “column”: 9
            }
          ],
          “path”: [
            “generateClusterToken”
          ],
          “code”: 222
        }
      ],
      “status”: 200
    }
    Am I using the wrong command?
    n
    i
    • 3
    • 10
  • e

    emurithi

    05/08/2018, 2:01 PM
    Someone help me. How can I deploy my prisma service to digital ocean
    n
    • 2
    • 1
  • a

    Alessio

    05/08/2018, 2:05 PM
    Hi guys! I need to implement validations on mutations in Prisma. The doc suggests to check values directly in the resolver, which is ok for me, but what about the checks on the relations? For example, take
    Post
    and
    Tag
    , let's say that in an update mutation on
    Post
    I need to create a
    Tag
    , how can validate the new tag?
    n
    • 2
    • 5
  • j

    Jim

    05/08/2018, 2:06 PM
    Is there a tutorial for local cluster deployment with Prisma 1.7 anywhere? The speed of the free shared one is driving me crazy and the official docs havn’t been updated yet: https://www.prisma.io/docs/tutorials/cluster-deployment/local-(docker)-meemaesh3k
    a
    n
    • 3
    • 76
  • v

    Vendicto

    05/08/2018, 3:55 PM
    Hi there 🖖 How to make an exact filter with ids ? For example I've created a chat with two people ["123", "234"], and then I want to create group with three people where two of them already have a chat ["123", "234", "345"] before create new chat I check Is there already chat with these people, I sent the Ids but get already chat ID because two of them are in DB
    Copy code
    query {
      allChats(filter:{
        users_every: {
            id_in: ["123", "234", "345"]
            }
          }
      ){
            id
          }
    }
    How to fix it ? 🙏
  • k

    Kimo

    05/08/2018, 4:50 PM
    Sometime back I developed a simple project. The project works perfectly with
    graphiql
    in the browser. It worked with
    graphql-playground
    before but right now I keep getting
    Server cannot be reached
    error.
    graphiql
    works perfectly. Here's my main server file:
    Copy code
    const express = require('express');
    const { graphqlExpress, graphiqlExpress } = require('graphql-server-express');
    const bodyParser = require('body-parser');
    const schema = require('./schema');
    const resolvers = require('./resolvers');
    const { execute, subscribe } = require('graphql');
    const { SubscriptionServer } = require('subscriptions-transport-ws');
    const { createServer } = require('http');
     
    const PORT = 3500;
     
    const app = express();
    
    // The GraphQL endpoint
    app.use('/graphql', bodyParser.json(), graphqlExpress({ schema }));
    
    // GraphiQL, a visual editor for queries
    app.use('/graphiql', graphiqlExpress({ 
      endpointURL: '/graphql',
      subscriptionsEndpoint: `<ws://localhost:${PORT}/subscriptions>`
    }));
    
    var ws = createServer(app);
    ws.listen(PORT, ()=> {
      console.log("Server Running on Port:", PORT);
      new SubscriptionServer({
        execute,
        subscribe,
        schema
      }, {
        server: ws,
        path: '/subscriptions',
      });
    });
    Does graphql-playground work with any graphql server that's not prisma or graphcool? I'm using the latest version of
    graphql-playground
    .
    n
    • 2
    • 8
  • f

    Fitch

    05/08/2018, 5:39 PM
    Praise PostGres Gods ❤️
  • n

    nickhudkins

    05/08/2018, 5:53 PM
    ahem, @schickling regarding your post in #announcements HOLYYYYY CRAPPPPPPPPPPPPPPPPPPP
    💩 2
    🙌 3
    ✝️ 3
  • r

    RedShift

    05/08/2018, 7:22 PM
    I'm so lost with all these codes
  • r

    RedShift

    05/08/2018, 7:22 PM
    *codenames
  • r

    RedShift

    05/08/2018, 7:22 PM
    life was simple when there was just graphcool.
    n
    l
    s
    • 4
    • 7
  • m

    mglcarmona

    05/08/2018, 8:21 PM
    Hey Guys What would be the best way to implement custom scalars. I know that i can overwrite the schema.graphql but what if i have to use the custom scalar y many quries and mutations?
    d
    n
    • 3
    • 3
  • k

    KyleG

    05/08/2018, 9:17 PM
    I'm very early into my second Prisma-based project where I started from the graphql advanced boilerplate for Node. I'm keeping up to date and already docker-composing with Prisma v1.8 for local development. I've written myself a nice datamodel file and then a very simplified schema file. When I use
    prisma deploy
    the mysql DB generates everything (all my tables and relations are there, cool), but
    generated/prisma.graphql
    is unchanged from the one that the boilerplate gave me not long ago (where it's just users and feeds and posts). I can delete and reset my stuff as much as a want, and
    prisma deploy
    seems to complete just fine - but the generated schema is totally unchanged.
    n
    • 2
    • 6
1...222324...637Latest