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

    Owen Delisle

    06/05/2019, 6:33 PM
    Hello everyone, I'm having trouble creating a subscription that can listen for deletions. The subscription fires when a deletion occurs, but the payload is always null. Here is my resolver.
    e
    • 2
    • 3
  • o

    Owen Delisle

    06/05/2019, 6:34 PM
    -.txt
  • s

    Steven Vachon

    06/05/2019, 7:34 PM
    is prisma-client-lib meant to run on the server or is it also for the browser?
  • s

    Steven Vachon

    06/05/2019, 7:35 PM
    it's the lengthy
    typeDefs
    part that makes me not want to use it in my frontend app
  • s

    Steven Vachon

    06/05/2019, 7:36 PM
    i've already written a
    fetch
    -based solution, but it's becoming annoying to transform data to include
    create
    and
    update
    encapsulators
  • s

    Steven Vachon

    06/05/2019, 7:40 PM
    i think a query builder would be best, but prisma has its own conventions that i think would cause problems with open source libs
  • a

    Alosies

    06/06/2019, 6:58 AM
    Issue related to migration of database from heroku to digital ocean. I did pg_restore of my postsgres dump from heroku. Did an introspection and ran
    prisma deploy
    . I’m able to query the scalar fields correctly but many relations are missing and returning null. Has anybody faced similar situation and solved? Or any help is highly appreciated. I’ve created an issue on GitHub as well regarding import/export issue.(https://github.com/prisma/prisma/issues/4627)
  • a

    Alosies

    06/06/2019, 6:59 AM
    My server version in heroku is pretty old.
  • a

    Alosies

    06/06/2019, 7:00 AM
    Old_Server_and_CLI_Versions_.txt
  • a

    Alosies

    06/06/2019, 7:01 AM
    New_Server_and_CLI_Versions_.txt
  • b

    bkstorm

    06/06/2019, 7:41 AM
    Hi everyone, I'm using Prisma 1.34. When I run
    prisma deploy
    , it works well. But then, I run
    prisma deploy --no-migrate
    , an error shows up, I can't figure out the problem, I hope you can. Here is the error and my schema. What should I do with the
    language
    column ? Its type is text in PostgreSQL.
    Copy code
    CategoryContent
        ✖ The underlying column for the field `language` has an incompatible type. The field has type `Enum` and the column has type `String`.
    Copy code
    type CategoryContent @db(name: "category_content") {
      id: Int!
        @id(strategy: SEQUENCE)
        @sequence(
          name: "category_content_id_seq"
          initialValue: 1
          allocationSize: 100
        )
      language: LanguageCode!
      name: String!
    }
    enum LanguageCode {
      VI
      KO
      EN
    }
    v
    a
    d
    • 4
    • 7
  • a

    Ameya Deshpande

    06/06/2019, 9:22 AM
    Hello all, I have just started learning Prisma-GraphQL. Would like to good tutorials where I can get myself practice a lot. Thanks.
    b
    • 2
    • 2
  • n

    notrab

    06/06/2019, 9:28 AM
    Anyone here looked at integrating Prisma with Apollo Federation? I started a thread over on Spectrum if anyones had a chance to hack on it, we could update the docs somewhere to show how it’s possible: https://spectrum.chat/prisma/general/prisma-apollo-federation~b4385b7d-fa87-42cc-8f5a-8df21d000241
    👍 2
    l
    a
    • 3
    • 4
  • p

    Pierre Rochard

    06/06/2019, 12:21 PM
    Hello! 👋 I have a newbie question. I'm building a backend service with Prisma + TypeScript. I would like to subscribe to real time updates so I used the example code provided
    Untitled.ts
  • p

    Pierre Rochard

    06/06/2019, 12:21 PM
    I think the problem I'm encountering is that the
    while (true)
    is blocking
  • p

    Pierre Rochard

    06/06/2019, 12:23 PM
    Is there a way to make it async? Or are there more fleshed out examples of how to build a backend service with Prisma?
  • p

    Pierre Rochard

    06/06/2019, 12:24 PM
    I tried
    for await
    but got an error
    Type 'AsyncIterator<User>' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator.ts (2549)
    Untitled.ts
  • t

    tafelito

    06/06/2019, 4:34 PM
    Hi there! I’m getting this error
    java.sql.SQLSyntaxErrorException: (conn=4) Unknown column 'Alias.text' in 'field list'
    I can’t figure it put how to fix it. I already reset the data, force deploy but anything seems to work
    a
    • 2
    • 3
  • t

    tafelito

    06/06/2019, 4:34 PM
    both in local and prisma cloud
  • a

    Andrew

    06/06/2019, 6:32 PM
    anyone able to get the graphql-yelp-binding working?
  • k

    koia

    06/06/2019, 7:18 PM
    Hi, I'm new to Prisma, I think it's a great technology but can somebody please explain to me the advantages on having prisma-server as the middle man between the app and the database? ... I know that for Prisma 2 there is going to be a client library too, I still no see the reason for the server.
    j
    a
    • 3
    • 16
  • k

    koia

    06/06/2019, 7:19 PM
    Thanks prisma cool
  • a

    Andres Montoya

    06/06/2019, 10:51 PM
    Hello everyone, I have a question... In the next software (mobile app, web app, desktop app, etc...) what stack will you choose? Firebase: This has firestore as database, auth, real time, ML kit, etc... Various modules to create an application the complete enough. Amplify aws: This has the same objetive of firebase, excepting that is works directly from the backend with nodejs, either, with an rest or graphql api, it brings with the integration of the database dynamodb, auth, real time, etc... Various modules to create applications, but not AI, as firebase does with ML kit. Backend from scratch: Creating the backend, either with nodejs, php, python, .net, whatever, with the database that you wants, sql or nosql. The question is, for you as a developer, ¿What do you prefer? Because program something from zero is expencive for me, since we have to spend enough money in scalability and be careful because the database has the back-ups needed, the api o website does not down, etc... Instead the services as firebase or amplify already resolve it with an economic price (for me). So, it would be worth to build projects from zero? Knowing that ambicious applications like duolingo, the new york times, etc, use the the pay services... I'd like to read your opinion, thank you!
    j
    • 2
    • 1
  • p

    Pierre Rochard

    06/06/2019, 11:11 PM
  • p

    Pierre Rochard

    06/06/2019, 11:11 PM
    here’s the stack I’m currently building
  • j

    John Cantrell

    06/07/2019, 1:58 AM
    In a scenario where the database table columns don't align exactly with how a form on the front-end is setup what is the best solution? As I see it there are two main options: 1) The graphql-yoga schema is consistent with the database and it's up to the front-end to parse and map the attributes from and to the server when fetching or saving. 2) The graphql-yoga schema is setup to match what the front-end dictates and then the yoga server maps back-and-forth when saving and fetching from the db. Is one solution better than the other?
  • a

    Andre Coetzee

    06/07/2019, 6:07 AM
    I’ll swop out yoga for apollo server
  • a

    Andre Coetzee

    06/07/2019, 6:09 AM
    and postgres if implemented right should have cache happening in front of the database.
  • p

    prilutskiy

    06/07/2019, 9:29 AM
    Hi everyone! I’m trying to build a dev dataset using faker.js. Is it possible to insert entities with prisma’s
    .createSOMETHING({...})
    using custom `createdAt`/`updatedAt` values?
  • g

    Grounzero

    06/07/2019, 10:26 AM
    Is it possible to connect prisma to an existing dotnet / sql server graphql backend? I am interested in using the Prisma admin tool in a similar way to GraphQL Playground.
1...277278279...637Latest