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

    Joakim Karlsson

    10/11/2019, 9:23 AM
    and every one of the frontend applications has this custom resolver that is supposed to do stuff even if there is no client connected and using the subscription
  • j

    Joakim Karlsson

    10/11/2019, 9:23 AM
    ofc, it’s gonna be the app replica that handles the mutation request via the graph. nvm
  • b

    bamne123

    10/11/2019, 12:45 PM
    photon related question
  • b

    bamne123

    10/11/2019, 12:47 PM
    Setup ————————— Prisma2 - preview13.3 Mysql 5.7 Nexus Schema: ————————— model ProfileInfo { id String @default(cuid()) @id @unique createdAt DateTime @default(now()) updatedAt DateTime @updatedAt title String language String categories String? description String owner User? } model User { id String @default(cuid()) @id @unique createdAt DateTime @default(now()) updatedAt DateTime @updatedAt email String @unique password String fullName String profile ProfileInfo } Mutation : —————————— t.field(“updateProfileInfo”, { type: “ProfileInfo”, nullable: false, args: { profileInfo: InputProfileInfo, ownerId: idArg() }, resolve: (parent, { profileInfo, ownerId }, ctx) => { return ctx.photon.profileInfos.create({ data: { ...profileInfo, owner: { connect: { id: ownerId } } } }); } }); Question : —————————— When I execute Mutation from Playground, Owner is always null. Even though the database has entry in owner column. Note: Same setup works for SQLlight.
    d
    • 2
    • 5
  • c

    ciszekmarcell

    10/11/2019, 2:56 PM
    what can I have done wrong when I can’t get any data from my DB when using prisma mySQL on the backend and react and apollo Client on the front end?
  • p

    patrick

    10/11/2019, 4:55 PM
    Just updated to react-relay 6.0.0 and I have a weird bug: no requests are being made, like if relay wasn’t connected to the server. Rolled back to 5.0 and everything works. Anybody aware of any breaking change? (nothing related in release notes it seems)
  • k

    Khoa Le

    10/13/2019, 4:29 AM
    hi everyone
  • k

    Khoa Le

    10/13/2019, 4:29 AM
    recently I have deployed prisma to dokku
  • k

    Khoa Le

    10/13/2019, 4:29 AM
    just like the tutorial link
  • k

    Khoa Le

    10/13/2019, 4:29 AM
    https://www.prisma.io/tutorials/deploy-prisma-to-dokku-ct15
  • k

    Khoa Le

    10/13/2019, 4:30 AM
    but some after the 1st deploy
  • k

    Khoa Le

    10/13/2019, 4:30 AM
    I cannot access to the app
  • k

    Khoa Le

    10/13/2019, 4:30 AM
    when I checked the logs
  • k

    Khoa Le

    10/13/2019, 4:30 AM
    it showed
  • k

    Khoa Le

    10/13/2019, 4:30 AM
    Copy code
    SEVERE: Connection error:
    2019-10-13T01:47:15.321687270Z app[web.1]: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "postgres"
  • k

    Khoa Le

    10/13/2019, 4:31 AM
    Could anyone help me out 😞
  • s

    Sujoy Saha

    10/13/2019, 7:18 AM
    https://stackoverflow.com/questions/58315585/variable-data-expected-value-of-type-votecreateinput?noredirect=1#comment103030944_58315585 can anyone help me out?
  • n

    Nick Wild

    10/13/2019, 5:42 PM
    datamodel.prisma: I want to create a datamodel that has
    account_id:Int!
    as being the unique “key” and to dispense with `id:ID! @id`However when I use `@id`on the above I do not have access to this in the mutation from the playground. How can I set this up so I can enter data that will be unique (account_ID will be 101, 102, 103 etc) but that will be seen as the id of the datamodel.
    h
    • 2
    • 1
  • a

    Alan

    10/13/2019, 11:34 PM
    I had to sum all my transactions in my prisma1 to to create some logic. Unfortunately, the query return only 1000 rows. (I have 35'000 transactions). I create a second sql server with a sql query to return the value. Is it a good practice? What other workaround should I do to solve this issue?
    r
    • 2
    • 1
  • s

    steven ko

    10/14/2019, 6:07 AM
    anyone knows about
  • s

    steven ko

    10/14/2019, 6:08 AM
    wait a sec
  • s

    steven ko

    10/14/2019, 6:08 AM
    wtf?
  • s

    steven ko

    10/14/2019, 6:08 AM
    error is gone?
  • s

    steven ko

    10/14/2019, 6:09 AM
    sorry
    😂 1
  • c

    Christoph Dietrich

    10/14/2019, 9:48 AM
    Currently i’m trying the prisma 1.34 get started steps. By step “build an app” i’m running against a wall with: “TypeError: nexus_prisma_2.prismaObjectType is not a function” in step 4 … npm run dev … anyone can help? https://www.prisma.io/docs/get-started/03-build-graphql-servers-with-prisma-TYPESCRIPT-t201/#implement-graphql-api-based-on-crud-building-blocks
    m
    • 2
    • 5
  • j

    Josef Henryson

    10/14/2019, 9:55 AM
    I am trying to deploy Prisma on Docker in Windows Server 2016, but I get this message:
    Copy code
    1.34: Pulling from prismagraphql/prisma
    ERROR: image operating system "linux" cannot be used on this platform
    Any ideas on how I can configure Docker on WS to support the Prisma image?
    🤔 1
  • r

    rein

    10/14/2019, 10:17 AM
    hey guys, this is more of a nexus related question but is it possible to extends an interface with another interface? Let's say I have a Book interface and a Node interface. Can I extend the Book interface with the Node interface so I don't have to specify id separately on the resolve types of Book?
    d
    j
    • 3
    • 4
  • d

    Daniel

    10/14/2019, 11:13 AM
    it Looks like, that the automated Generation step of Prisma doesn't support an explicitly set .yml file i added a -p with a different filename than Prisma.yml to my deploy statement but when it should generate the Clients for me, it says, it cannot find the Prisma.yml file, if i start generate manually everything works fine
  • p

    prilutskiy

    10/14/2019, 1:39 PM
    Guys, are there any rumors regarding the release date / Prisma team progress so far? 🙂
    🔜 1
    d
    • 2
    • 3
  • e

    ericsonluciano

    10/14/2019, 2:13 PM
    anyone have an idea with graphql-shield
    Copy code
    isAuthenticated: rule()((parent, args, context) => {
        const {
          app: {
            user: { id }
          }
        } = context;
        return Boolean(id);
      }),
    not sure why i alway got error with not authorized even the token was correct.
    r
    • 2
    • 2
1...320321322...637Latest