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

    mikkelsl

    02/14/2019, 6:09 PM
    If I want to make a Note app with React, and don't want to press a Save button, when writing notes. Can someone point me in the direction of a good approach to do this with Prisma? 🙂
  • i

    impowski

    02/14/2019, 6:11 PM
    There is a bug in Safari on Prisma website
  • i

    impowski

    02/14/2019, 6:12 PM
  • l

    lawjolla

    02/14/2019, 6:14 PM
    Is it possible and/or sensible to work
    nexus-prisma
    into an existing Apollo Server / Prisma server? I'd like to migrate, but I don't have my head around what that path might look like
    i
    w
    n
    • 4
    • 4
  • k

    Kaushal

    02/14/2019, 8:02 PM
    @nikolasburk @nilan Team, It would be amazing if you could share some update on this issue? Really looking forward to it! MSSQL Connector! https://github.com/prisma/prisma/issues/1642
  • a

    Arjun Karnwal

    02/14/2019, 9:51 PM
    Hi, do we have any server side implementation of filters using AND and OR operators.
    j
    • 2
    • 1
  • a

    Arjun Karnwal

    02/14/2019, 9:51 PM
    ?
  • r

    Ramin B

    02/15/2019, 12:04 AM
    https://medium.com/open-graphql/react-suspense-with-graphql-d95cdef46bfe
  • a

    Arnab

    02/15/2019, 9:43 AM
    When implementing mutations, where should one typically put authorization (not authentication)? I have a choice between : a) putting the authorization in the mutation resolver before calling on some services that make changes b) putting the authorization in the services that are called
    j
    • 2
    • 5
  • o

    Omprakash

    02/15/2019, 10:11 AM
    Hi team, what is the latest version of Prisma docker image. 1.26 is the latest tag in docker hub. Also is it possible to modify the image i.e upgrade the Java libraries to newer versions because vulnerability scan indicates the use of older versions of libraries
    a
    m
    • 3
    • 5
  • a

    Aitor

    02/15/2019, 10:21 AM
    fast parrot
  • r

    rein

    02/15/2019, 10:39 AM
    hey guys, so I noticed Digital Ocean just released managed Postgres database clusters (https://blog.digitalocean.com/announcing-managed-databases-for-postgresql/?utm_medium=email&utm_source=internal&utm_campaign=ManagedDBPostgresLA)
    👍 1
  • r

    rein

    02/15/2019, 10:40 AM
    dumb question perhaps but this is usable with Prisma?
    h
    • 2
    • 2
  • r

    rein

    02/15/2019, 12:10 PM
    This might be another dumb question but when in development, would one of those hosted databases + 1 prisma server be enough for multiple prisma projects?
    👍 1
    h
    r
    • 3
    • 16
  • l

    lewisedc

    02/15/2019, 2:03 PM
    Can you horizontally scale if you host a prisma server with postgres db on heroku?
  • n

    nsignes

    02/15/2019, 2:05 PM
    Hi everyone. I couldn't find the answer to this question online, maybe someone knows... If I issue multiple mutation to prisma in a single push, as in :
    mutation {
    q1: updateMyObject(...){...},
    q2: updateMyOtherObject(...){...}
    }
    Do Prisma guarantee the order of execution and transaction all the queries (ie, if q2 fails for some reason, would q1 be rollbacked ?) I know GraphQL server are supposed to guarantee the order of action when receiving multiple mutations, and I read that Prisma mutation are atomic (though that article could refer to nested mutation too...), but if anyone has a more direct prisma-related knowledge on this case, I'd be grateful... Thanks for any info !
    👍 1
    m
    • 2
    • 3
  • o

    ohorovsky

    02/15/2019, 2:26 PM
    Hi all! I am trying to deploy Prisma to AWS Fargate according to this tutorial -> https://www.prisma.io/tutorials/deploy-prisma-to-aws-fargate-ct14/ Everything went well until last step, actual deployment of Prisma service to new server. It is connecting to endpoint and correct PRISMA_MANAGEMENT_API_SECRET but in console it prints out this error:
    -.txt
    h
    • 2
    • 2
  • o

    ohorovsky

    02/15/2019, 2:27 PM
    I can’t find any solution related to Fargate. 😢
  • o

    ohorovsky

    02/15/2019, 2:27 PM
    Anyone came across this problem?
  • j

    joan

    02/15/2019, 4:19 PM
    Hiya, what is wrong with my
    dates
    field? I get this error message:
    Copy code
    [GraphQL error]: Message: Variable '$data' expected value of type 'EventUpdateInput!' but got: {"title":"title here","slug":"title-here","description":"lorem ipsum.","dates":["2019-02-28T11:11"]}. Reason: 'dates' Expected 'EventUpdatedatesInput', found not an object. (line 1, column 43):
    mutation ($where: EventWhereUniqueInput!, $data: EventUpdateInput!) {
                                              ^, Location: [object Object], Path: updateEvent
    I get that error when trying to run a mutation to update an event:
    Copy code
    const UPDATE_EVENT_MUTATION = gql`
      mutation UpdateEventMutation($id: ID!, $title: String!, $slug: String!, $description: String, $dates: [String]) {
        updateEvent(id: $id, title: $title, slug: $slug, description: $description, dates: $dates) {
          id
          title
          description
          dates
        }
      }
    `;
    graphql.schema:
    Copy code
    type Mutation {
      updateEvent(id: ID!, title: String!, slug: String!, description: String, dates: [String]): Event
    }
    
    type Event {
      id: ID!
      slug: String!
      title: String!
      description: String
      dates: [String]
      places: [Place]
      menus: [String]
    }
    auto generated prisma.schema:
    Copy code
    input EventUpdatedatesInput {
      set: [String!]
    }
    
    updateEvent(data: EventUpdateInput!, where: EventWhereUniqueInput!): Event
    h
    • 2
    • 6
  • j

    joan

    02/15/2019, 4:20 PM
    @Harshit any idea? I've made sure it's deployed 😁
  • l

    lawjolla

    02/15/2019, 4:35 PM
    If anyone wants to make the tutorial to end all tutorials... Prisma + Kubernetes + Postgres on Digital Ocean. 👌🙏
  • m

    mharrvic

    02/15/2019, 7:01 PM
    guys can you give me idea on how to query daily, weekly, mothly data? thanks!
  • a

    Adam Tsai

    02/15/2019, 8:08 PM
    I'm getting a 429 error ("too many requests") when trying to log in on the Prisma website. Has anyone else experienced this issue?
  • a

    Adam Tsai

    02/15/2019, 8:21 PM
    Can someone from the Prisma team please address this? It looks like I can't sign up for a new account either. Same 429 error.
  • j

    joan

    02/15/2019, 8:54 PM
    I'm getting this error when trying to update an
    event
    with a new array of `places`:
    Reason: 'places' Expected 'PlaceUpdateManyInput', found not an object
    Copy code
    const UPDATE_EVENT_MUTATION = gql`
      mutation UpdateEventMutation($id: ID!, $title: String!, $slug: String!, $description: String, $dates: [String], $places: [PlaceInput]) {
        updateEvent(id: $id, title: $title, slug: $slug, description: $description, dates: $dates, places: $places) {
          id
          title
          description
          dates
          places {
            name
            url
          }
        }
      }
    `;
    
    // Resolver
    updateEvent(parent, { id, title, slug, description, dates, places }, context) {
         return context.prisma.updateEvent({
           where: { id },
           data: { title, slug, description, dates: { set: dates }, places },
         });
       },
    
    // graphql schema
    type Mutation {
      updateEvent(id: ID!, title: String!, slug: String!, description: String, dates: [String], places: [PlaceInput]): Event
    }
    
    input PlaceInput {
      name: String!
      url: String
    }
    
    type Place {
      id: ID!
      name: String!
      url: String
    }
    
    type Event {
      id: ID!
      slug: String!
      title: String!
      description: String
      dates: [String]
      places: [Place]
      menus: [String]
    }
    m
    • 2
    • 12
  • r

    ryan

    02/15/2019, 8:58 PM
    Hi all, can anyone point me to an up-to-date guide on handling permissions with Prisma? it looks like there used to be a
    permissions
    root property that could go in
    prisma.yml
    but perhaps that’s no longer? my usecase right now isn’t that complex, I actually just want to make certain models read-only
    l
    d
    • 3
    • 5
  • e

    ElektrikSpark

    02/15/2019, 10:23 PM
    Is anybody able to log in to Prisma on the website? 429 error as well @Adam Tsai
  • m

    Mike

    02/15/2019, 10:42 PM
    I'm talking to @tim2 about this. He's told me that my
    vscode-graphql
    extension is DOSing their servers and they've had to block my IP. @ElektrikSpark @Adam Tsai Are you guys using that extension for vscode? https://marketplace.visualstudio.com/items?itemName=Prisma.vscode-graphql
  • e

    ElektrikSpark

    02/15/2019, 10:46 PM
    yes @Mike
1...210211212...637Latest