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

    koia

    07/23/2019, 6:35 PM
    https://github.com/prisma/prisma/releases
  • m

    Mike

    07/23/2019, 8:42 PM
    @dpetrick I'm glad to see there's a fix for the database connection pool. Do you think it's possible to release a fix for 1.34.x, which is the current stable prisma version? I thought it was strange that it was only released for 1.30.5
    d
    • 2
    • 2
  • m

    Mike

    07/23/2019, 8:43 PM
    Also https://www.grammarly.com/blog/loose-lose/
  • s

    sajmil

    07/23/2019, 9:46 PM
    Hey guys prisma is awesome. I just wanted to share a bit of feedback that the documenation is too confusing. There’s prisma cloud and prisma and graphcool and it doesnt make any sense. If you guys could consolidate the documenation, and the feature requests/bugs, I bet you’d have 5x more devs using it.
    h
    • 2
    • 1
  • s

    steve

    07/24/2019, 6:45 AM
    Anyone who know the stable version with prisma, graphql, docker?
    n
    h
    • 3
    • 4
  • j

    Jidé

    07/24/2019, 11:39 AM
    Hey ! I just discovered the “Studio — soon” item in the prisma 2 website dropdown, and now I’m curious 🙂
    h
    • 2
    • 3
  • v

    vjsingh

    07/24/2019, 2:56 PM
    Hey all, is there a way to add custom logic to a generated CRUD operation? For example, if I have a picture type, let’s say there is a generated CRUD mutation called createPicture. If I wanted to add an ‘index’ field to the new picture object, how would I do that?
    b
    h
    • 3
    • 26
  • v

    vjsingh

    07/24/2019, 2:57 PM
    The four ways I can see would be 1. Define a new myCreatePicture field 2. Over-write the addPicture field 3. Somehow add logic to the generated CRUD resolver 4. Some kind of hook that was called after the resolver was complete What’s the recommended way to do this?
  • v

    vjsingh

    07/24/2019, 2:57 PM
    (Whoops, sorry. Using Prisma 1 and nexus-prisma)
  • j

    Jose Garcia

    07/24/2019, 10:28 PM
    Any reason why I'd get this with a postgres database
    ERROR: relation "public.User" does not exist
    c
    • 2
    • 1
  • c

    Corey Snyder

    07/25/2019, 4:23 AM
    When
    FILTERING
    on an
    ENUM
    type, is it possible to just filter where it has a value and is not null? I don’t want to use
    options_in
    b/c then I have to maintain the full list of options in the ENUM.
    m
    • 2
    • 5
  • s

    Shakle

    07/25/2019, 11:36 AM
    Can somebody tell me how to setup prisma cloud with heroku to have different environments for dev and production?
    t
    • 2
    • 2
  • c

    Corey Snyder

    07/25/2019, 1:42 PM
    Is there a community where you can actually get help from people who know the library? Here I see lots of questions and rarely any answers.
    h
    • 2
    • 2
  • s

    Shakle

    07/25/2019, 1:45 PM
    https://www.prisma.io/forum
  • f

    faure

    07/25/2019, 2:24 PM
    Hi, is anyone developing a open source typescript prisma-client project? I'd like to read some code to learn some implementation styles
    h
    • 2
    • 3
  • f

    faure

    07/25/2019, 2:26 PM
    I'm about to start refactoring some code and I already have a few ideas but I feel like I could learn much more by reading other people's code
  • i

    Isaac Weber

    07/25/2019, 6:05 PM
    For creating a production prisma server is the only option using docker or setting up your own database?
    h
    • 2
    • 2
  • l

    Luke

    07/25/2019, 11:58 PM
    is it possible to have a relation of different types? like
    Copy code
    type Post
    
    type Comment
    
    type Upvote
         item: Post || Comment
    m
    • 2
    • 3
  • h

    Herbert Pimentel

    07/26/2019, 6:39 AM
    I am trying to get prisma schema but it keeps returnig "Your token is invalid. It might have expired or you might ..." the endpoint, the token and the API are working just fine just graphql-cli can connect to it ‼ Your token is invalid. It might have expired or you might be using a token from a different project.: {"response":{"errors":[{"message":"Your token is invalid. It might have expired or you might be using a token from a different project.","code":3015,"requestId":"local:cjyjqiqmo00290757fqmg0ef9"}],"status":200} ....
    n
    • 2
    • 4
  • f

    faure

    07/26/2019, 12:33 PM
    Is there any library that will take an object and attach methods according to its
    __typename
    ?
    e
    h
    • 3
    • 4
  • l

    Luis Gregson

    07/26/2019, 3:30 PM
    Hey 👋 Trying to run
    prisma export
    with version
    1.33.0
    and getting the following error:
    Copy code
    > prisma export --path ./backup/prisma-data.zip
    
     ▸    Error parsing plugin /Users/luisgregson/workspace/airpay-services/node_modules/prisma/node_modules/prisma-cli-core
    
     ▸    'MODULE_NOT_FOUND': Cannot find module 'union-value'
    
     ▸    Error parsing plugin /Users/luisgregson/workspace/airpay-services/node_modules/prisma/node_modules/prisma-cli-core
    
     ▸    'MODULE_NOT_FOUND': Cannot find module 'union-value'
    
     ▸    Error parsing plugin /Users/luisgregson/workspace/airpay-services/node_modules/prisma/node_modules/prisma-cli-core
    
     ▸    'MODULE_NOT_FOUND': Cannot find module 'union-value'
    
     ▸    export is not a prisma command.
     ▸    Perhaps you meant help
     ▸    Run prisma help for a list of available commands.
    Anyone else getting this?
    h
    • 2
    • 5
  • l

    Luis Gregson

    07/26/2019, 3:31 PM
    Prisma CLI version: prisma/1.33.0 (darwin-x64) node-v8.10.0
  • p

    Peter Zhou

    07/26/2019, 9:41 PM
    Does prisma batch queries when sending them to postgres? In my database, a specific organization has two projects. I’m running this query to fetch the organization’s projects:
    Copy code
    export const USER_WITH_PROJECTS_QUERY = gql`
      query UserWithProjectsQuery {
        me {
          id {
            organization {
              projects {
                id
                name
                lastUpdated
              }
            }
          }
        }
      }
    `;
    and expect it to make only one call to the database. However, inspecting the queries made to the postgres database I see that there are actually two calls (I’ve posted the postgres logs as a reply to this) Why is prisma not making one call for both projects? Is there no batching mechanism under the hood?
    h
    • 2
    • 2
  • p

    Peter Zhou

    07/26/2019, 9:41 PM
    The prisma version is 1.34.1
  • h

    Herbert Pimentel

    07/26/2019, 9:45 PM
    OMG, how you guys deal with a query argument case insensitive ? is there some nice and clean workaround for this?! I am using postgres and kind of insensitive queries really matters to me, they will be all over the place 😕
    h
    • 2
    • 1
  • g

    guille

    07/27/2019, 5:21 PM
    Hey guys I'm trying to add a new scalar with
    GraphQLScalarType
    in schema.graphql
    Copy code
    scalar DateTime
    
    type User {
      id: ID!
      registered: DateTime
    }
    types.ts
    Copy code
    type DateTime = string 
    
    export interface User {
        id: string
        registered: DateTime
    }
    scalars/DateTime.ts
    Copy code
    export const DateTime = new GraphQLScalarType({
       name: 'DateTime',
       description: 'testing DateTime' ,
       serialize: (value) => {
          let result;
          console.log(value);
          return result;
       },
       parseValue: (value) => {
          let result;
          console.log(value);
          return result;
       },
       parseLiteral: (ast) => {
          console.log(ast);
       },
    });
    In the resolvers.ts I've tried to import the
    DateTime
    and added to
    Copy code
    export const resolvers: Resolvers = {
        DateTime,
        User,
    }
    But I get the error
    Type '{ DateTime: GraphQLScalarType; User: Type; }' is not assignable to type 'Resolvers'.
    How should I add the scalar to the server (
    graphql-yoga
    ) ?
    h
    h
    • 3
    • 5
  • h

    Hisco

    07/27/2019, 7:56 PM
    Hey all, I'm trying to setup Prisma with an existing mysql schema. It seems that the only way to control which schema Prisma will use in mysql db is by setting an endpoint with the format of
    ${service}/${stage}
    (example:
    foo@bar
    ). While my existing schema ( example:
    foo
    ) has only one part of name. Is it possible use an existing mysql schema with the format of
    foo
    ? without stage in the name... Thanks in advance!
    h
    • 2
    • 2
  • s

    Shaon

    07/28/2019, 5:48 AM
    Fetching problems ...... anyone here can give solutions ???
    h
    • 2
    • 1
  • n

    Neeraj Sewani

    07/28/2019, 12:20 PM
    Got this error Detail: User does not have CONNECT privilege. after using Prisma for 2 months and it is not going away, the only way to get rid of this is to delete the database and add a new database. Moreover, resetting the database doesn't help either. This issue is prevalent for a long time https://github.com/dpetrick/prisma-heroku/issues/1 and did not get the solution yet. I hope to get a reply back from the Prisma team.
    h
    k
    • 3
    • 4
  • j

    Jeremiah

    07/28/2019, 3:48 PM
    I'm working on a project where I'm using graphql-yoga to store data on a Prisma database, but I also want to process some data on my server. Is there a way to do that with graphql-yoga or is it only for interacting with the database?
    h
    • 2
    • 1
1...295296297...637Latest