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

    Andy Fang

    04/29/2019, 3:47 PM
    Or react-apollo?
    s
    • 2
    • 1
  • b

    Ben Scholtz

    04/29/2019, 4:19 PM
    @Andy Fang I'm using Apollo with ReasonML.
  • j

    Joe Becher

    04/29/2019, 4:26 PM
    Hi folks! using
    graphql-request
    and trying to figure out how best to mock the API responses using jest. Any recommendations/advice?
  • s

    Simon Stenbæk Madsen

    04/29/2019, 4:30 PM
    Anyone have experience with updating your prisma server on heroku to the newest version?
  • a

    alec

    04/29/2019, 5:23 PM
    Is graphcool down?
    h
    t
    p
    • 4
    • 3
  • p

    pcooney10

    04/29/2019, 5:26 PM
    Hey prisma team, there seems to be 503 errors across a number of projects for the graphcool Simple API
    👀 1
    🙋‍♂️ 2
  • h

    Harshit

    04/29/2019, 5:39 PM
    Hi all, We are currently experiencing some issues with DockerHub which is affecting our GraphCool deploy. We are working on bringing GraphCool back up as quickly as possible 🙏
    🙏 10
    💯 2
  • b

    Bryan

    04/29/2019, 6:46 PM
    yep, graphcool cloud are not working! 😖
    😩 4
  • j

    joar

    04/29/2019, 7:18 PM
    https://status.docker.com/
    t
    • 2
    • 1
  • j

    joar

    04/29/2019, 7:18 PM
    You can follow that page for status
  • j

    joar

    04/29/2019, 7:19 PM
    For the people that need something concrete to show management 😉
  • n

    Neves

    04/29/2019, 7:58 PM
    Graphcool status page says that everything is fine 😖 https://status.graph.cool/ Docker hub is facing authentication issues with degraded performance to log in, log out and reset password. Why the already deployed Graphcool servers shutted down? Graphcool docker hub account was involved with last week exploit?
    😖 1
  • n

    Neves

    04/29/2019, 8:05 PM
    Graphcool is now working for me
  • n

    Neves

    04/29/2019, 8:06 PM
    Very unstable
  • b

    Bryan

    04/29/2019, 8:07 PM
    Exist some way to get access to the Mysql database cloud service of a Graphcool service? Because the export/import not work properly
  • b

    Bryan

    04/29/2019, 8:09 PM
    Or how we can obtain a backup of the current database in the cloud service?
  • t

    tomhut

    04/29/2019, 8:10 PM
    Seems to be up for me too
  • m

    marcus

    04/29/2019, 8:11 PM
    Our account was not compromised in the incident. What caused the downtime today is that we were not able to pull images from docker hub due to some rate limiting that they put in place on their side. In the last hours we started to work around the rate limiting.
    😥 1
    👍 6
  • n

    Neves

    04/29/2019, 8:12 PM
    Simple graphql api is working for me CLI connection still down Graphcool admin is unstable
    🙋‍♂️ 1
  • n

    Nelson Pecora

    04/29/2019, 9:05 PM
    Hi all, I'm not sure what happened but I'm getting a really weird error when trying to run
    prisma generate
    (details in thread)
    • 1
    • 8
  • k

    Kianoosh

    04/29/2019, 9:42 PM
    Hey guys, I'm trying to check existence of some records base on multiple fields since there's no feature like unique together in prisma yet i came with the idea of checking existence of them before creating, But in my case i have an array of objects and i have to map through them... finally i wrote it out like this:
    Copy code
    musics.map(async (music) => {
                let isMusicExists = await context.prisma.$exists.musicDirectory({
                    AND: [
                        {
                            directoryId,
                            musics_some: {
                                trackId: music.trackId,
                                trackService: music.trackService
                            }
                        }
                    ]
                });
                if (isMusicExists){
                    throw new Error('This music is already added in this place!')
                }
            });
    this piece of code is in middle of my revolver, What i expect after receiving duplicate record is throwing an error and stop the execution furthermore but what i get in console is:
    Copy code
    (node:11309) UnhandledPromiseRejectionWarning: Error: This music is already added in this place!
        at musics.map (/home/kianoosh/MyApp/resolvers/Mutation.js:384:23)
        at processTicksAndRejections (internal/process/task_queues.js:86:5)
    (node:11309) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
    I tried to use catch but it didn't make any difference after all the error is just printing in console and doesn't stop anything.
    c
    j
    • 3
    • 6
  • j

    Jeremiah

    04/30/2019, 4:25 AM
    I've been following a tutorial series (Wes Bos's Advanced-React course) and when I most recently tried to deploy some changes, I've been getting the error "One field of the type
    User
    must be marked as the id field with the
    @id
    directive." but I have version 1.17.1 of prisma installed and before we just had to have "id: ID! @unique" and I'm not sure what changed.
    s
    d
    • 3
    • 8
  • d

    Darryl

    04/30/2019, 4:33 AM
    Hi, everyone. Is there any documentation about
    @scalarList
    ? I updated my Prisma version so I could try Prisma Admin and now, when deploying, I’m getting the `Valid values for the strategy argument of
    @scalarList
    are: RELATION.` errors. Thanks.
    j
    • 2
    • 3
  • p

    philip andrew

    04/30/2019, 5:44 AM
    Hello on prisma.sh sometimes the websocket working and sometimes now, why
  • m

    Matthias Harder

    04/30/2019, 7:02 AM
    Hi Guys, do I understand correct that prisma is not supporting mssql connections at the moment? best regards
    n
    • 2
    • 1
  • r

    Ross Coundon

    04/30/2019, 10:09 AM
    I’ve deployed a Prisma Cloud server (https://www.prisma.io/cloud) via Heroku. Locally I’m using the 1.31 release but the server is still on 1.23 - I therefore get a warning about mismatched versions when I deploy. Is there a way to update the version of the Prisma Cloud server to the latest - if not, is there any release plan as to when the new version will be available on Prisma Cloud?
    n
    • 2
    • 2
  • d

    Darryl

    04/30/2019, 10:16 AM
    I installed the latest version of Prisma (1.31.2) and set that version in
    docker-compose.yml
    but I’m getting an error when trying to set up the database.
    Copy code
    ➜ git:(master) ✗ prisma --version
    Prisma CLI version: prisma/1.31.2 (darwin-x64) node-v10.15.3
    ➜ git:(master) ✗ docker-compose up -d
    Pulling prisma (prismagraphql/prisma:1.31.2)...
    ERROR: manifest for prismagraphql/prisma:1.31.2 not found
    Looking on Docker, I don’t see a tag for that version.
    h
    n
    • 3
    • 3
  • d

    Darryl

    04/30/2019, 10:16 AM
    https://hub.docker.com/r/prismagraphql/prisma/tags
  • k

    kitze

    04/30/2019, 2:04 PM
    I’m getting this error although the definition of the input type is:
    Copy code
    export type PaddleSubscriptionWhereUniqueInput = AtLeastOne<{
      id: ID_Input;
      subscriptionId?: String;
    }>;
    h
    • 2
    • 1
  • g

    Gaurav

    04/30/2019, 2:56 PM
    Could anybody here help me with
    graphql-code-generator
    and
    prisma
    type mismatch on returning promise. That is, for this field resolver:
    Copy code
    customer: async (root, args, context) => {
        try {
          await ifCustomerOwnsThisResource(context, {
            cartItems_some: {
              id: root.id
            }
          });
          return await context.prisma.customerCartItem({ id: root.id }).customer();
        } catch (error) {
          console.error(error);
        }
      },
    I am getting this error:
    Copy code
    src/resolvers/cartResolvers.ts:25:3 - error TS2322: Type '(root: CustomerCartItem, args: {}, context: IContext) => Promise<Customer>' is not assignable to type 'Resolver<Customer, CustomerCartItem, IContext, {}>'.
      Type '(root: CustomerCartItem, args: {}, context: IContext) => Promise<Customer>' is not assignable to type 'ResolverFn<Customer, CustomerCartItem, IContext, {}>'.
        Type 'Promise<Customer>' is not assignable to type 'Customer | Promise<Customer>'.
          Type 'Promise<import("G:/graphql/prod/graphql-server/src/generated/prisma-client-ts/index").Customer>' is not assignable to type 'Promise<import("G:/graphql/prod/graphql-server/src/generated/resolvers-types").Customer>'.
    From what I get,
    prisma
    returns
    interface CustomerPromise
    for chained query, while
    Promise<Customer>
    is expected as return expression by
    graphql-code-generator
    . How to fix that?
    d
    h
    • 3
    • 5
1...263264265...637Latest