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

    kubo.motyl

    08/09/2018, 1:23 PM
    hey @nilan, how are the internal IDs in the underlying SQL database (we use postgres connector) generated? for some of our use-cases we need to insert some data (instances of SDL types + binding table data) and we're worried that if we just insert some random string for ID when creating the instances it might not play well with Prisma
    n
    j
    • 3
    • 9
  • s

    steveb

    08/09/2018, 7:20 PM
    @nilan and team, is there a way to specify a default value for a property referencing another type?
  • s

    steveb

    08/09/2018, 7:21 PM
    maybe by unique key?
  • w

    w0wka91

    08/10/2018, 1:15 AM
    Prisma docs are offline 😞
  • g

    giacomoguiulfo

    08/10/2018, 1:19 AM
    Hello, does anyone know if it's possible to configure Prisma entirely through ENV variables ? Or at least everything sensitive, and the rest through a config file?
    w
    • 2
    • 2
  • w

    w0wka91

    08/10/2018, 5:25 AM
    Does the prisma token expire? And if so is there a way to get a permanent token?
    h
    • 2
    • 8
  • l

    Luke

    08/10/2018, 10:38 AM
    I know this sounds like a really stupid question, but how do I run prisma after I have downloaded the master branch from github? I would like to run prisma without npm or yarn.
  • h

    halborg

    08/10/2018, 10:48 AM
    Does anyone know of a way to specify a wildcard/folder to use in the
    prisma.yml
    datamodel
    key? At the moment, I have about 40 lines under this key, one for each model file, and have to maintain it for each model added/removed. I.e.
    Copy code
    endpoint: [myendpoint]
    datamodel:
    - model/address.graphql
    - model/campaign.graphql
    - model/user.graphql
    ...
    It would be awesome if it could be written as
    Copy code
    endpoint: [myendpoint]
    datamodel:
    - model/**/*.graphql
    ...
    or something
  • h

    halborg

    08/10/2018, 11:57 AM
    What is the difference between the Prisma Secret and Prisma Management Api Secret? If any?
    n
    • 2
    • 5
  • g

    golbie

    08/10/2018, 12:22 PM
    hello there
  • g

    golbie

    08/10/2018, 12:26 PM
    I want to use Prisma as part of the existing REST backend (node.js). Is it possible just to install (npm i -g prisma) and use it on my own server or is it necessary to switch to the Enterprise version (because of the "On Premise" feature)?
    h
    • 2
    • 4
  • p

    pascallaliberte

    08/10/2018, 1:08 PM
    @nilan Experiencing some problems with graphcool. Getting the following error after a long delay in my playground:
    TypeError: Origin <https://console.graph.cool> is not allowed by Access-Control-Allow-Origin.
    n
    • 2
    • 3
  • p

    pratikt

    08/10/2018, 1:19 PM
    @nilan is graphcool service down ?
    n
    • 2
    • 2
  • s

    Seun LanLege

    08/10/2018, 3:18 PM
    Hey guys, subscriptions don't seem to work for my project
  • s

    Seun LanLege

    08/10/2018, 3:19 PM
    any idea what could be wrong
  • s

    Seun LanLege

    08/10/2018, 3:19 PM
    i'm testing in the playground and it just keeps spinning
  • m

    Moritz

    08/10/2018, 4:06 PM
    Hi, whats the most performant way to select a random element of a type in prisma?
  • m

    michal.tomsia

    08/10/2018, 4:32 PM
    Hello guys, how can I obtain typescript interfaces for custom schema types (specifically mutation payload) defined in
    schema.graphql
    ?
    j
    • 2
    • 28
  • r

    ryannealmes

    08/10/2018, 4:41 PM
    hey guys, I recently watched -

    https://www.youtube.com/watch?v=XI5Yj_FCyfE▾

    which is a live coding session for prisma advertised on the graphql weekly mailing list. From my understanding, the way they use prisma + react doesn’t really make sense as they don’t have a wrapper api to wrap prisma. Is my thinking correct that you wouldn’t genereal expose a prisma api publicly as it is completely open. You would need to lock it down with a wrapper api and auth?
    n
    n
    • 3
    • 5
  • m

    Margarita

    08/10/2018, 11:02 PM
    Hi there, can graphql-cli tool show that some field in GraphQL schema was changed from not required to required?
  • l

    Luke

    08/11/2018, 9:14 AM
    I have downloaded Prisma (https://github.com/prismagraphql/prisma) from the master branch of github and changed a few code segments. Now I would like to install and run my version of Prisma. However, I do not get it working, because with npm I am only able to install the version which is online and not my local version. Can someone please tell me how I can run my local version of prisma?
  • j

    Jens Franke

    08/11/2018, 1:15 PM
    i have one question regarding https://github.com/prismagraphql/graphql-config in vs code. only after saving the external
    single-fragement.gql
    file, go to definition works. any ideas to fix my problem? thanks in advance
  • j

    jaga_santagostino

    08/11/2018, 2:36 PM
    Hello, is there a way to add validations on the prisma db schema?
  • j

    jaga_santagostino

    08/11/2018, 2:36 PM
    Eg minLength: 3
  • j

    jaga_santagostino

    08/11/2018, 2:36 PM
    For a string field?
  • m

    Moritz

    08/11/2018, 3:40 PM
    Hi there, what the most efficient way to query a random element of a type from prisma? Querying all elements of a type and selecting a random one seems incredably inefficient. Is there a better approach?
    j
    • 2
    • 4
  • i

    illuday

    08/12/2018, 12:03 AM
    Hey guys, I think the onDelete param of my relation isn't working. Just check :
    Copy code
    MODEL :
    type A {
        b: B! @relation(name: "MyRelation", onDelete: SET_NULL)
    }
    
    type B {
        as: [A!]! @relation(name: "MyRelation", onDelete: SET_NULL)
    }
    Copy code
    MUTATION :
    deleteB(id: ID!): B!
    
    return ctx.db.mutation.deleteB({ where: { id } });
    It always return me : The change you are trying to make would violate the required relation 'MyRelation' between A and B Have you an idea ? Thanks 🙂
  • m

    Moritz

    08/12/2018, 8:07 AM
    Hi, Im running into this issue creating new prisma project using
    graphql create
    . Heres my cli output:
    Copy code
    graphql create new_project
    ? Choose GraphQL boilerplate project: typescript-basic           Basic GraphQL s
    erver (incl. database)
    [graphql create] Downloading boilerplate from <https://github.com/graphql-boilerplates/typescript-graphql-server/archive/master.zip>...
    ✖ 
    undefined
    Is anyone else experiencing this?
  • j

    juicycleff

    08/12/2018, 1:12 PM
    Nestjs powered by Prisma https://github.com/manjula91/server-nestjs . A boilerplate to start using Apollo Server 2, NestJs and Prisma, with jwt authentication and very soon support for Passport using graphql
  • u

    UsulPro

    08/12/2018, 6:52 PM
    HI, does anybody faced this issue when deploying graphcool:
    Copy code
    gcf deploy
    Bundling functions... 68.0s
    Deploying to shared-eu-west-1 with target prod... 2.1s
    There are issues with the new service definition:
    
      Global
        ✖ software.amazon.awssdk.services.lambda.model.InvalidParameterValueException: Unzipped size must be smaller than 262144000 bytes (Service: null; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: 11c4cfc5-9e60-11e8-bcdd-8d092bb017ce)
    
    Here are your GraphQL Endpoints:
    It appears even on previous commits which was deployed fine before
1...969798...637Latest