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

    Industrial

    12/04/2018, 9:17 AM
    e.g. I am importing a year's worth of data all at once (so 365 rows/entries)
  • i

    Ivan Petrushev

    12/04/2018, 1:17 PM
    Is Prisma model definitions different than Graphcool model definitions? I'm trying to move some stuff from Graphcool to Prisma and I'm getting this issue: Graphcool definition:
    Copy code
    type City @model {
      id: ID! @isUnique
    Error:
    The field id is reserved and has to have the format: id: ID! @unique or id: UUID! @unique.
    h
    j
    • 3
    • 3
  • t

    Tamir

    12/04/2018, 3:06 PM
    Is there a place to see whats new in 1.22
  • t

    Tamir

    12/04/2018, 3:06 PM
    and In every patch for that matter 🙂
  • f

    fgreinus

    12/04/2018, 3:08 PM
    https://github.com/prisma/prisma/releases 😛
  • t

    Tanvir

    12/04/2018, 4:47 PM
    Does anyone have any experience using graphql-request and enabling keep-alive? I’m looking at the strace output and it’s creating multiple raw socket connections to the Apollo Server that I’m making requests to even though I set Connection header to Keep-Alive
  • j

    JoshDev

    12/04/2018, 6:09 PM
    Hello Im new here
  • j

    JoshDev

    12/04/2018, 6:12 PM
    I have a Question Where can i deploy my container with Prisma except Prisma Servers another, cuz now dont support Docker in the nwe version
  • l

    lawjolla

    12/04/2018, 6:15 PM
    Congrats on the new release!! Two Mongo questions. First, is there any more info on Datamodel V2? Second, is there any advantage to using Mongo over the SQLs for a greenfield project with no database preference?
    👍 1
    🙏 1
    n
    n
    • 3
    • 4
  • r

    rwatts3

    12/04/2018, 6:38 PM
    Question, the docker-compose.yml file that's generated for prisma contains a
    databases:
    key I initially had mysql, in the default object, then added another object to databases called mongodb and added a mongodb endpoint, is that intended to be an array of databases or is the plural not intentional ?
    d
    • 2
    • 2
  • r

    rwatts3

    12/04/2018, 6:38 PM
    if so how do you switch between which database you want to use in your local prisma.yml file ?
  • v

    Viable

    12/05/2018, 1:59 AM
    Hi I was trying to do context.prisma.createEntity() but it was throwing
    "Variable '$data' cannot be non input type 'XxxxCreateInput!'.
    error - solution was to
    prisma deploy
    - but I'm wondering if we could see a better error like from postgresql saying "no such table.."
  • i

    Industrial

    12/05/2018, 8:34 AM
    Hi.
  • i

    Industrial

    12/05/2018, 8:35 AM
    Copy code
    export async function createOHLCVs(market, period, ohlcvs) {
      // console.log('createOHLCVs', market, period, ohlcvs.length)
    
      const apolloClient = getApolloClient()
    
      await Promise.all(
        ohlcvs.map((oHLCV) => {
          const [timestamp, open, high, low, close, volume] = oHLCV
    
          const variables = {
            close,
            high,
            low,
            marketBase: market.base,
            marketQuote: market.quote,
            open,
            period,
            timestamp: new Date(timestamp).toISOString(),
            volume,
          }
    
          return apolloClient.mutate({
            mutation: createOHLCV,
            variables,
          })
        }),
      )
    }
    This code makes me cry 😞
    d
    h
    • 3
    • 18
  • l

    leafyshark

    12/05/2018, 9:30 AM
    Hiya does anyone know how to set up prisma with mongodb because I’ve tried it as explained on the docs and mongodb compass conflicts with docker. I’m guessing they’re both using the same port
    s
    • 2
    • 1
  • a

    Arnab

    12/05/2018, 10:00 AM
    Does anyone know of any tooling that allows sorting of types in a graphql schema? Edit: it would also be helpful to know if some tooling like this would be nice to have
  • i

    Industrial

    12/05/2018, 10:29 AM
    Hi. I am running Prisma with PostgreSQL. Is there a way to have custom queries for CREATE TABLE and for INSERT ?
    a
    • 2
    • 8
  • j

    joar

    12/05/2018, 1:28 PM
    In this example, how many individual requests are done against the DB?
    Copy code
    const author = await context.prisma
          .post({
            id,
          })
          .author()
    Does it first query the post, and then the author? Or does it batch them and join?
    m
    • 2
    • 2
  • e

    ervindraganovic

    12/05/2018, 2:09 PM
    Hi guys, anyone familiar with the error The field
    languages
    is a scalar field and cannot specify the
    @relation
    directive.
    a
    • 2
    • 7
  • l

    leafyshark

    12/05/2018, 2:14 PM
    Does anyone have a boilerplate I could work with for mongodb connector with prisma??
  • l

    leafyshark

    12/05/2018, 2:15 PM
    This whole docker-compose/prisma/mongodb set up is more difficult than I thought!
    h
    • 2
    • 4
  • m

    Maik

    12/05/2018, 2:17 PM
    Hello, i have a question regarding a resolver: I have a model as seen here. Now I have many A, which in turn have a ‘has many’ relation to B. Now i want to query only those A, where A.currentStatus is B.status (Something like a SQL Join: A.currentStatus = B.status): How can I accomplish this in prisma, without an additional 1:1 relationship? Thanks!
    -.txt
  • j

    joar

    12/05/2018, 2:53 PM
    Is there any more detailed information regarding hosted prisma servers? Are they sharing resources with other clients? Is there an availability guarantee? Been getting a few 504's while browsing the services page, will my prisma service have the same level of degraded service?
  • v

    Viable

    12/05/2018, 4:09 PM
    joar: it's easy to install prisma and a vpn server on a digitalocean VPS using rancher2
    j
    • 2
    • 1
  • v

    Viable

    12/05/2018, 4:09 PM
    Did someone just update prisma-client-lib? What's the change log for it, master branch hasn't been touched for days but an update just came out.
    n
    • 2
    • 1
  • l

    leafyshark

    12/05/2018, 4:11 PM
    After following along with the 'Getting started with a new database" here: https://www.prisma.io/docs/1.22/releases-and-maintenance/features-in-preview/mongodb-b6o5/
  • l

    leafyshark

    12/05/2018, 4:11 PM
    I have been unable to access MongoDB Compass
  • l

    leafyshark

    12/05/2018, 4:11 PM
    I found out yesterday that's because the port is conflicting with Docker container. Anybody have any ideas on how to go about resolving this issue?
  • v

    Viable

    12/05/2018, 4:12 PM
    do you have a docker-compose.yml?
  • l

    leafyshark

    12/05/2018, 4:12 PM
    Yes I do
    n
    v
    j
    • 4
    • 5
1...171172173...637Latest