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

    Michael Auderer

    07/07/2019, 9:55 PM
    When trying to define my model I’m getting this error:
    "ERROR: No subset types are available. Please make sure that one of your GraphQL type is a subset of your t.model('<ModelName>')"
    On an enum field
    b
    • 2
    • 3
  • s

    Sam

    07/07/2019, 10:58 PM
    Hi team! I notice that Prisma 2 doesn't yet have a license. Neither Photon or Lift have a
    LICENSE
    file in the root of the repository. Is this intentional? I notice for Lift that the
    "license"
    key is set to
    "Apache-2.0"
    in
    package.json
    (presumably by @tim2 when he generated the project)... is this the license both of these tools will be released under?
    t
    • 2
    • 1
  • d

    Dylan Miller

    07/08/2019, 3:04 AM
    I'm finding that performing a query for the first 10 objects with orderBy specified can take 30+ seconds when you have millions of objects. This seems like a big problem and I'm surprised that it's not being talked about, at least as far as I can tell. Just getting the count of objects can take several seconds once you have millions of objects. I don't have much database experience, so I don't know how much of this slowdown is caused by MySQL/Postgres (I've tried both) as opposed to Prisma. Are most people using Prisma at a small scale and not running into the serious performance issues that you start to hit when working with larger data sets?
  • j

    Jonty Coertzen

    07/08/2019, 8:35 AM
    Hi, can anyone help me with implementing Bull into my GraphqlServer? Im using prisma with graphql yoga and I need to run background jobs. I know it needs redis but I have no idea what to do when it comes to redis
  • m

    Morten Bo Rønsholdt

    07/08/2019, 12:36 PM
    has anyone managed to find a solution to this? https://github.com/prisma/nexus-prisma/issues/276. specifically, why the required relations marked by
    !
    in datamodel doesn't propagate to the schema.graphql file with Nexus
  • e

    Entrepreneur3

    07/08/2019, 9:19 PM
    Hi does anyone have any reference for me regarding mocking prisma for unit testing with jest? Would appreciate that. My goal is do create unit tests that are uncoupled from everything so they run in milliseconds. I don't necessarily need to stick to mocking if I can do that in a different way
  • n

    Nelson Pecora

    07/08/2019, 9:55 PM
    ok, weird issue with 1.34.1: I keep trying to deploy a capitalization change to certain fields and it says it worked, but it keeps reverting silently: http://up.keats.me/e84322fc9e60
    j
    • 2
    • 39
  • c

    CCBCodeMonkey

    07/09/2019, 5:15 AM
    hey, I am using a demo server for testing and getting this error:
  • c

    CCBCodeMonkey

    07/09/2019, 5:15 AM
    Copy code
    UnhandledPromiseRejectionWarning: Error: Whoops. Looks like an internal server error. Search your server logs for request ID:
    e
    • 2
    • 4
  • c

    CCBCodeMonkey

    07/09/2019, 5:16 AM
    is there any way I can figure out what is causing it?
  • e

    Ehsan sarshar

    07/09/2019, 6:31 AM
    when querying prisma what happen if I pass null and what if I pass undefined
    🤕 1
    • 1
    • 1
  • b

    ByeongdoLee

    07/09/2019, 7:36 AM
    hai, I'm looking for vscode extension for prisma1 syntax
  • b

    ByeongdoLee

    07/09/2019, 7:36 AM
    anyone know?😅
  • g

    gem

    07/09/2019, 8:41 AM
    is there a possibility to enable rawAccess in prisma in production with AWS fargate ?
    h
    • 2
    • 1
  • h

    Herbert Pimentel

    07/09/2019, 1:07 PM
    there's nay way to debug/get log of exection during the project instrospeciton ?! it is failing to me saying "Error in lift engine" and nothing more.... how can I help to find out the problem
  • n

    Nelson Pecora

    07/09/2019, 2:41 PM
    😕 https://github.com/prisma/prisma/issues/4351
  • g

    Guillaume DUHAN

    07/09/2019, 2:44 PM
    Hi everyone 🙂 Brand new on graphql-yoga I got an issue
  • g

    Guillaume DUHAN

    07/09/2019, 2:44 PM
    I wonder how I can get an url on my APi that return a JSON
  • g

    Guillaume DUHAN

    07/09/2019, 2:45 PM
    This is my query:
  • g

    Guillaume DUHAN

    07/09/2019, 2:45 PM
    message has been deleted
  • g

    Guillaume DUHAN

    07/09/2019, 2:50 PM
    thanks for help 🙂
  • g

    Guillaume DUHAN

    07/09/2019, 3:02 PM
    Actually: I want to turn my GraphQL into a REST Api
    n
    • 2
    • 1
  • a

    Andrew O.

    07/09/2019, 5:06 PM
    Where would I ask questions about nexus prisma?
  • p

    Peder Johnsen

    07/09/2019, 9:25 PM
    Are there any detailed docs on relations? (PostgresSQL)
    e
    • 2
    • 1
  • t

    Travis

    07/09/2019, 10:54 PM
    Is it necessary to add the prisma generated client to the context of Apollo Server? Why can't you just use the prisma client by importing/requiring it directly within the js file in which the resolvers reside?
  • c

    Corey Snyder

    07/10/2019, 2:54 AM
    Anyone here associated w/ the tool https://github.com/prisma/graphql-config ? I’m using it w/ Pycharm and it doesn’t seem to play nice w/ the Prisma generated code. It basically complains that the type has been defined 3 times (Once in the
    datamodel.prisma
    , once in the `schema.graphql`and lastly once in the prisma generated code. I have my
    .graphqlconfig
    setup to exclude the other files but it doesn’t seem to turn off these errors:
    Copy code
    “excludes”: [
        “datamodel.prisma”,
        “**/prisma/**“,
        “**/generated/**”
      ],
    l
    • 2
    • 5
  • c

    Corey Snyder

    07/10/2019, 7:35 PM
    What’s the best way to handle a set list of items that rarely changes? Such as
    FavoriteColors
    on the
    Person
    Type? Would it be best to create an entirely new Type to represent the potential colors? Or can you create an
    enum
    that maintains the list?
    a
    • 2
    • 19
  • a

    Andrew O.

    07/10/2019, 7:40 PM
    Enum.
  • a

    Andrew O.

    07/10/2019, 7:40 PM
    Does anyone here know Nexus enums well?
  • a

    Andrew O.

    07/10/2019, 7:55 PM
    I want to create Nexus EnumTypes from data returned from queries. Is there any documentation on doing this? Really struggling with it currently.
1...290291292...637Latest