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

    mux

    04/19/2019, 2:57 PM
    this seems like a bug since the documentation for DataModel v1.1 says that embedded is the default
  • j

    Jonathan

    04/19/2019, 2:59 PM
    @mux did you update to 1.31?
  • m

    mux

    04/19/2019, 2:59 PM
    1.32-beta since that's what Prisma Cloud is on now
  • m

    mux

    04/19/2019, 3:00 PM
    mostly just reliability engineering DataModel v1.1 before migrating over to it. seems pretty buggy, though
  • m

    mux

    04/19/2019, 3:04 PM
    just tested on a 1.31 docker deploy, and got the same error, so it seems like a DataModel v1.1 issue
  • j

    Jonathan

    04/19/2019, 3:09 PM
    working for me on 1.32.0-beta docker setup
  • j

    Jonathan

    04/19/2019, 3:10 PM
    note: i’m on a fresh database, it wasn’t migrated over
  • m

    mux

    04/19/2019, 3:22 PM
    not sure, when I rollback the docker setup to 1.30 it works fine ¯\_(ツ)_/¯
  • m

    mux

    04/19/2019, 3:22 PM
    are you sure your Prisma client is also on 1.32 as well?
  • j

    Jonathan

    04/19/2019, 3:30 PM
    1.32.0-beta
  • j

    Jonathan

    04/19/2019, 3:31 PM
    have you tried removing the @scalarlist directive? it’s default, maybe you don’t need it
  • m

    mux

    04/19/2019, 3:33 PM
    yep same error, which is why I tried explicitly defining it. if I set the strategy to RELATION in works fine, but creating an additional relational type is kind of cumbersome since I would have to seed the types for it to work properly in my use case
  • c

    chrisbull

    04/19/2019, 4:45 PM
    Im having problems with
    _admin
    as well. Anyone figure out why?
    s
    • 2
    • 1
  • c

    captaindaylight

    04/19/2019, 5:08 PM
    I’m having this many to many relation error https://github.com/prisma/prisma/issues/4418 has anyone run into something similar?
    c
    • 2
    • 2
  • b

    Bjoern

    04/19/2019, 6:37 PM
    Copy code
    type GeoJson {
      id: ID! @id
      coordinates: [Int] @scalarList(strategy: RELATION)
      type: String!
    }
    How would the mutation to create a GeoJson look like?
  • b

    Bjoern

    04/19/2019, 6:38 PM
    I can't figure out how to describe the Scalarlist
  • b

    Bjoern

    04/19/2019, 6:39 PM
    I keep getting this error:` Reason: 'location.create.coordinates' Expected 'GeoJsonCreatecoordinatesInput', found not an object.`
  • j

    Jscott388

    04/19/2019, 6:41 PM
    Why the hell cant I reach the graph yoga server on port 4000? I get site can’t be reached.
    j
    • 2
    • 1
  • b

    Bjoern

    04/19/2019, 6:41 PM
    this is my mutation
    Copy code
    mutation {
      createGeoJson(data: {type: "Point" coordinates: [1, 4]}) {
        id
      }
    }
    j
    • 2
    • 8
  • j

    Jonathan

    04/19/2019, 6:54 PM
    @Jscott388 could be many different reasons…no one can help if you don’t provide your code
  • s

    Slackbot

    04/19/2019, 6:56 PM
    This message was deleted.
    j
    j
    d
    • 4
    • 27
  • d

    defrex

    04/19/2019, 7:38 PM
    👋 I'm trying to run Prisma Server in an environment where I can only use the port specified in the
    PORT
    environment variable. This means I can't specify it directly in
    PRISMA_CONFIG
    . Is there a standard solution for this? I can't seem to find a way. 😕
    c
    • 2
    • 4
  • d

    defrex

    04/19/2019, 7:39 PM
    I'm using the docker image, btw
  • d

    defrex

    04/19/2019, 11:12 PM
    FYI, solved the above: https://github.com/defrex/prisma-gcp
  • s

    Saidy Barry

    04/20/2019, 12:18 AM
    dose prisma support ES6
    c
    • 2
    • 2
  • a

    Andres Montoya

    04/20/2019, 2:08 AM
    This is not about Prisma but I think someone would like to know about it. I've made a tool based on all the tools used for pentesting on networking based in docker, it's called WIFIRock and you can use it here https://github.com/MontoyaAndres/WIFIRock if you want to add more tools write me in inbox or do a pull request! 🙏
  • e

    Enitan

    04/20/2019, 11:38 AM
    Hi all, new to prisma and I have run into the following issue: Whoops. Looks like an internal server error. Search your server logs for request ID: local:cjupfbilw01sg0759hacfxjmf".
  • e

    Enitan

    04/20/2019, 11:38 AM
    My question is: "how to do I find the logs?"
    s
    • 2
    • 1
  • e

    Ecker

    04/20/2019, 12:05 PM
    Is there any easy to way to
    upsertMany
    ? As I have input of 20K entries where I don't know if it's update or insert. But a unique identifier is known, so should I first insert/create all the missing ID's then use
    updateMany
    afterwards? – Any other techniques?
  • e

    Enitan

    04/20/2019, 12:23 PM
    Hi all, I am trying to do this:
    Copy code
    mutation CreateLocal {
      createLocalUser(
        data: {
          email: "<mailto:example@mail.com|example@mail.com>"
          password: "Welcome1"
          user: { create: { firstName: "John", permissions: { set: USER } } }
        }
      ) {
        id
      }
    }
1...257258259...637Latest