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

    Bruno Prela

    09/11/2018, 4:55 PM
    Is there a new way to declare text array fields for a postgres db in the more recent prisma version?
  • l

    lawjolla

    09/11/2018, 5:03 PM
    I'm ready to unleash the party parrots... make the announcement šŸ™‚
    šŸ‘€ 4
    šŸ˜‚ 3
  • h

    Henry

    09/11/2018, 5:19 PM
    So what’s happening to prisma-bindings now?\
  • h

    harmony

    09/11/2018, 5:19 PM
    prisma šŸ”« prisma
  • m

    mario

    09/11/2018, 5:27 PM
    When will Prisma support NoSQL databases?
  • b

    brikou

    09/11/2018, 5:27 PM
    @schickling It is not clear, just installed lastest prisma from npm 1.16.0, and there is no
    prisma generate
    command
    t
    b
    s
    • 4
    • 38
  • r

    rwatts3

    09/11/2018, 5:31 PM
    Can the community get an update on Geo Queries in Prisma ? The GitHub issue has numerous requests for a time line or some kind of update with no response. I know you guys are busy , just figured if we could get an idea of when it may work through the pipeline that would be nice. Several people seem to have projects that may be on hold awaiting this response. Including myself.
    s
    • 2
    • 1
  • l

    lawjolla

    09/11/2018, 6:09 PM
    I’ve read the article and all of the docs on Prisma Client — I’m not understanding the value proposition over prisma-binding. It looks like the query/mutation type was chopped off and specific data can be fetched by chaining methods instead of the awkward
    { id users { id ...} }
    string. Am I understanding it??
    s
    m
    • 3
    • 26
  • b

    Bruno Prela

    09/11/2018, 6:23 PM
    Hello just repeating the question because this is the first time ive upgrades prisma in a while
  • b

    Bruno Prela

    09/11/2018, 6:24 PM
    I just updated from 1.9 to 1.16 and now get the following error:
    Copy code
    The scalar field `slides` has the wrong format: `[String!]!` Possible Formats: `String`, `String!`
    From here https://www.prisma.io/docs/data-model-and-migrations/data-model-knul/#list I believe it should work, and in the past has worked to create array fields in postgres, so I was wondering how I would continue using this feature
  • b

    Bruno Prela

    09/11/2018, 6:26 PM
    sorry stale link https://www.prisma.io/docs/1.16/develop-prisma-service/service-configuration/data-model-knul/#list
    s
    j
    • 3
    • 27
  • s

    sean

    09/11/2018, 6:52 PM
    The new blog post is pretty confusing. I see this in a few of the code examples:
    const { prisma } = require('./prisma')
    for building an app with Prisma but there’s no
    index.js
    for this to be a valid import
    t
    • 2
    • 1
  • h

    HarryC

    09/11/2018, 8:18 PM
    Hello, trying to understand Prisma Client here. What is the recommended approach if my app code is separate from the prisma cluster? Then I can't simply
    require('./generated/prisma')
    anymore
    s
    • 2
    • 4
  • w

    witt3rd

    09/11/2018, 8:44 PM
    also trying to use the client lib via typescript, but getting the following error:
    Copy code
    node_modules/http-link-dataloader/dist/src/types.d.ts:5:14 - error TS2304: Cannot find name 'RequestInit'.
    
    5     method?: RequestInit['method'];
                   ~~~~~~~~~~~
    s
    • 2
    • 2
  • j

    jaybauer

    09/11/2018, 8:49 PM
    Hey everyone, I’m struggling with something and I was hoping I could get some direction. If my user creates a post, I’d like them to be able to schedule it to publish at a certain time. I’m using the
    node-schedule
    library to do this, which acts like a Node cron job. I want query to run at midnight every day that will check all the pending posts, see if the
    DateTime
    matches the current day, and then confirm the post. My question is, how can I run this query on the server? Obviously doing it on the front-end is easy enough, but running these queries on the server is proving challenging, since all the examples with Prisma and it’s resolvers rely on the
    ctx
    object and such. I cannot find any documentation for this in `graphql-yoga`’s README or anywhere else. Does anyone have a quick answer to this?
    p
    • 2
    • 2
  • m

    Mike

    09/11/2018, 9:13 PM
    Hey @schickling, I noticed what looks like a typo in the Prisma client announcement. I think this example should have an
    await
    unless you guys have black magic in the prisma client
    Copy code
    const newUser = prisma.createUser({
      name: "Alice",
      email: "<mailto:alice@prisma.io|alice@prisma.io>"
    })
    s
    • 2
    • 1
  • h

    Henry

    09/11/2018, 9:15 PM
    I tried using the steps provided in this issue to upgrade to 1.17-beta-1-heroku. Everything looks like it succeeded but prisma cloud still claims my server to be 1.11-beta https://github.com/prisma/prisma-cloud-feedback/issues/202
    k
    d
    • 3
    • 2
  • l

    lancej

    09/12/2018, 1:06 AM
    Just created a forum post: https://www.prisma.io/forum/t/updating-a-list-within-an-entity-appends-rather-then-replaces/4396 if anyone knows the answer help would be appreciated.
  • b

    Bambang Handoko

    09/12/2018, 3:37 AM
    Hi everyone, I just joined here. I m just curious about graphQL. May it say better from RESTful API from performance side? And I need explanation from the one who had implemented graphQL in production
    m
    • 2
    • 1
  • k

    kitze

    09/12/2018, 6:09 AM
    Followed the new tutorial for Prisma client, few things missing: When installing the
    graphql
    dependency, there is an error that multiple instances of
    graphql
    are found in node_modules. When removing it the server works fine. Both
    prisma-client-lib
    and
    prisma-lib
    need to be installed as modules, this is not mentioned. The tutorial mentions that
    generate
    should be added to
    prisma.yml
    but the entry is already there when using
    prisma init
    .
    k
    d
    • 3
    • 4
  • s

    sascha

    09/12/2018, 7:59 AM
    Hi, I am trying to follow the get started guide here (https://www.prisma.io/docs/get-started/01-setting-up-prisma-new-database-a002/). I am stuck at the step 5, whereas the command ā€œprisma init --endpoint http://localhost:4466' complains that it cannot find the file datamodel.prisma. Anyone can advise?
    c
    • 2
    • 1
  • b

    brikou

    09/12/2018, 8:09 AM
    Hi there! I'm working on a PR on graphql-request. Still WIP but I'd like a feedback to know if I'm doing something usefull? Here it is: https://github.com/prisma/graphql-request/pull/105
    d
    • 2
    • 35
  • b

    brikou

    09/12/2018, 8:14 AM
    ping @divyendu
    šŸ‘€ 1
  • k

    kratam

    09/12/2018, 8:23 AM
    I'm trying to upgrade an existing project which uses
    prisma-binding
    to
    prisma@beta
    . When running
    prisma deploy
    I get an error that multiple instances of
    graphql
    are requested. After looking at
    yarn.lock
    , it seems that for example
    prisma-generate-schema@0.0.7
    lists
    graphql "^0.13.2"
    and
    prisma-cli-core@1.0.5-2
    lists
    graphql "^0.11.7"
    . If I remove
    prisma
    from
    devDependencies
    it works, but is it really necessary to install prisma globally?
  • j

    Jerry JƤppinen

    09/12/2018, 8:31 AM
    Just ran into https://hasura.io/event-triggers on ProductHunt. Prisma has subscriptions but as I understand they also have some limitations… are they comparable to this, or are they higher-level than ā€œwebhooks on database eventsā€?
    d
    • 2
    • 9
  • j

    Jim

    09/12/2018, 9:22 AM
    Where are the latest docs on deploying a Prisma service? I can find some info on the tutorials page, but it says it’s an old version of the docs: https://www.prisma.io/docs/tutorials
    s
    d
    l
    • 4
    • 16
  • w

    weakky

    09/12/2018, 9:58 AM
    Hey there everyone šŸ‘‹ I’ve been working on a library to dramatically ease the creation of backoffices with Prisma. It’s an adaptator for
    react-admin
    called
    ra-data-opencrud
    , and you can read a lot more about it here https://www.prisma.io/forum/t/prisma-with-react-admin-build-a-working-backoffice-in-a-few-hours/ Feedbacks and suggestions would be very much appreciated ! See ya šŸ»
    fast parrot 3
    b
    • 2
    • 3
  • j

    jferrettiboke

    09/12/2018, 10:06 AM
    Does anyone know if Prisma image on
    docker-compose.yml
    is aligned with Prisma CLI version? Should I update both of them at the same time or doesn't matter?
    d
    • 2
    • 2
  • g

    Grant

    09/12/2018, 10:45 AM
    Hi, is anyone here familiar enough with Prisma Client to help me out with an issue?
    d
    l
    • 3
    • 20
  • l

    Lucian Doghi

    09/12/2018, 11:57 AM
    Hey guys, we are creating a node js app deployed on heroku. We hooked a prisma dev server hosted by prisma. I see that the dev server is using a beta prisma version, it's 1.17-beta-1, and we don't seem to be able to change the version with the one that we have in our app. As a free hosted server I understand this could be non editable but what about a plan that requires billing? Could we force that prisma cloud server to run on a specific prisma version instead of the latest one, or even worse, a beta one?
    d
    • 2
    • 2
1...116117118...637Latest