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

    Luke

    03/07/2018, 4:18 AM
    am I missing something?
  • l

    Luke

    03/07/2018, 4:19 AM
    and can Prisma Cloud talk to Postgres or only MySQL ?
  • l

    Luke

    03/07/2018, 4:24 AM
    maybe I use the prisma cli to configure it
  • i

    iamclaytonray

    03/07/2018, 4:39 AM
    MySQL at the moment, but Postgres and others are on the roadmap @Luke
  • l

    lastmjs

    03/07/2018, 7:04 AM
    I've just installed Prisma and am working with the basic TypeScript backend boilerplate. I'm getting this error when I run prisma deploy. It's stopping the prisma.ts file from being generated:
    Copy code
    Deploying service `backend` to stage `dev` on cluster `local` 38ms
    Service is already up to date.
    
    Hooks:
    Checking, if schema file changed 72ms
    Writing database schema to `src/generated/prisma.graphql`  1ms
    Running $ graphql prepare...
     ▸    Syntax Error GraphQL request (25:3) Expected Name, found String
     ▸    
     ▸    24: type BatchPayload {
     ▸    25:   """
     ▸    ^
     ▸    26:   The number of nodes that have been affected by the Batch operation.
     ▸    
     ▸
    • 1
    • 1
  • b

    borisgefter

    03/07/2018, 10:55 AM
    Has anyone found a good way of hooking prisma in with graph.cool? We are struggling, and trying to avoid a full rewrite. Esp. functions...
  • v

    Vendicto

    03/07/2018, 10:59 AM
    Hi there, who can explain difference between graphcool and prisma? For my test project I'm using graphcool, should I switch to Prisma ? P.S Sorry if this is a noob question, but I'm really confused
    👍 2
    k
    • 2
    • 2
  • m

    Max Hodges

    03/07/2018, 11:36 AM
    @sorenbs @nilan hey guys, congrats on your release. You should use a COMMA as a thousands separator ($1,000) instead of a “.”. I know some places swap them, like in Poland “$1.000,23" but you use “.” for 99.99%, so it’s not consistent
  • m

    Max Hodges

    03/07/2018, 11:39 AM
    Question, can we easily downgrade from Business to Standard?
    n
    • 2
    • 1
  • m

    Max Hodges

    03/07/2018, 11:41 AM
    Prisma home page design is well done! Did you do it in-house, or work with some designer?
  • k

    Kyle Gammon

    03/07/2018, 11:53 AM
    Has anyone come across any examples of using jest to test resolvers? Only examples I've seen so far are with ava but ideally we'd like to use jest
    m
    v
    • 3
    • 6
  • a

    Avi Block

    03/07/2018, 12:38 PM
    Am I reading that correctly? One request per second?
  • u

    user

    03/07/2018, 12:39 PM
    @max commented on @Avi Block’s file

    https://prisma.slack.com/files/U8ZQADW1H/F9M0JS6LF/image.png▾

    : yes
  • a

    Avi Block

    03/07/2018, 12:39 PM
    So if your application makes two requests the second will be delayed by a second?
    n
    • 2
    • 3
  • v

    Vendicto

    03/07/2018, 12:52 PM
    How to delete nodes with relations? http://prntscr.com/io20nu How to do it right ?
    m
    • 2
    • 14
  • p

    parweb

    03/07/2018, 1:23 PM
    Hi everyone
  • p

    parweb

    03/07/2018, 1:23 PM
    I’m using prisma and I have this types
    Copy code
    type User {
      id: ID!
      email: String!
      location: Location!
    }
    
    type Location {
      id: ID!
      lat: Float!
      lng: Float!
      user: User
      street: String
      postalCode: String
      city: City
    }
    
    type City {
      id: ID!
      name: String!
      country: Country!
      locations: [Location!]!
      areas: [Area!]!
    }
  • p

    parweb

    03/07/2018, 1:24 PM
    I would like to update a user location but I struggle to fine an good way
  • p

    parweb

    03/07/2018, 1:25 PM
    I try this
    Copy code
    type Mutation {
        addLocationUser(location: LocationCreateInput): User!
    }
  • p

    parweb

    03/07/2018, 1:26 PM
    and this
    Copy code
    import { getUserId, Context } from '../../utils'
    
    export async function addLocationUser(parent, args, ctx: Context, info) {
      const userId = getUserId(ctx)
      const user = await ctx.db.mutation.updateUser({
        where: { id: userId },
        data: {
          location: { upsert: args },
        },
      })
    
      return user
    }
  • p

    parweb

    03/07/2018, 1:28 PM
    Is it a good start ?
    n
    • 2
    • 1
  • j

    johannpinson

    03/07/2018, 1:36 PM
    Hi guys! If anyone have an opinion about to define a mono-repo organization from the fullstack boilerplate => https://www.graph.cool/forum/t/monorepo-organization/2753 Thanks 👍
    👍 1
  • p

    picosam

    03/07/2018, 1:40 PM
    Hello, I’m a bit confused about deploying a development cluster (10 requests per 10 seconds max) — I would like to use that for my staging environment (only shared amongst a few developers and not in prod) but I’m not sure how I can actually define the cluster as dev!
    n
    • 2
    • 14
  • m

    Maxime Scibetta

    03/07/2018, 2:10 PM
    Someone have same issue ?

    https://puu.sh/zCwzY/6e2fb0e0a1.png▾

  • m

    Maxime Scibetta

    03/07/2018, 2:13 PM
    works now !
    n
    • 2
    • 2
  • h

    harrisrobin

    03/07/2018, 2:26 PM
    https://www.prismagraphql.com/cloud/ down?
    n
    • 2
    • 2
  • m

    Maxime Scibetta

    03/07/2018, 3:15 PM
    Hey guiz, how works mutation with relation now my code doesn't work
    Copy code
    mutation addQuiz{ 
      createQuestion(data: {
        name: "Service de vote",
        quiz: "cjeh7r7m8xvuh01044kxpy3s4",
        status: OPEN,
    }) {
        id
      }
    }
  • m

    Matt

    03/07/2018, 3:21 PM
    try this
    -.txt
  • v

    Vakrim

    03/07/2018, 4:12 PM
    Hey, in what git repository can I find code responsible for generating types for typescript from schema after deploy of prisma?
    m
    a
    • 3
    • 7
  • r

    rcy

    03/07/2018, 6:47 PM
    We are getting 504s on graph.cool hosted services (not prisma) in us region
    n
    • 2
    • 1
1...600601602...637Latest