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

    nilan

    08/15/2018, 1:01 PM
    I recommend you to read this, @cory: https://docs-beta.prisma.io/1.13/understand-prisma/
    c
    • 2
    • 5
  • b

    Benoit Ranque

    08/15/2018, 1:39 PM
    Hello
  • b

    Benoit Ranque

    08/15/2018, 1:40 PM
    prisma.io/docs/ is down for me
  • b

    Benoit Ranque

    08/15/2018, 1:40 PM
    error 508
  • b

    Benoit Ranque

    08/15/2018, 1:40 PM
    anyone else getting this?
    n
    • 2
    • 2
  • m

    Moritz

    08/15/2018, 1:41 PM
    Hi, we just started hosting our own prisma instance and yoga server in a digital ocean droplet. We are noticing a rather high memory usage of constantly about 21% and 7% by two java processes (We have 1GB of RAM available in total). Are these the prisma processes? Is such high memory consumption normal? We are experiencing very large CPU and Disk IO usage as well due to swap. Can you share any experiences from hosting the prisma cloud on how to best manage/choose appropriate virtual infastructure?
    n
    • 2
    • 2
  • m

    markus

    08/15/2018, 3:08 PM
    Hey there! My Prisma server is crashing when I query more than one
    pgRelation
    at once through Graphql 😅 (The datamodel is created through
    introspect
    ) . I’m not sure if this is a know issue or if I should create a ticket? I tried with
    prisma:1.15-alpha
    as well but no luck. Would be happy with a workaround for now, as the alternative is going back to PostGraphile for the time being 🙂
    n
    • 2
    • 17
  • b

    Benoit Ranque

    08/15/2018, 3:27 PM
    It's me again. Is the fragments portion of resolvers supposed to work yet? I swear I got it to work last night, but now it is not working and I feel stupid. Example resolver:
    Copy code
    js
    const Employee = {
      report: {
        fragment: `fragment EmployeeId on Employee { id }`,
        async resolve (obj, args, ctx, info) {
          console.log(obj) // does not have the id property
          return [] // dummy data
        }
      }
    }
    n
    • 2
    • 2
  • w

    weakky

    08/15/2018, 4:29 PM
    Looks like https://www.prisma.io/docs is down, I’m getting a blank page
    n
    • 2
    • 1
  • c

    ckelley

    08/15/2018, 6:02 PM
    Hey, has anyone found a way to configure Prisma with Fargate directly - without using the cloudformation template? I don't want all of the extra stuff that comes with setting up the template and I'm trying to do it directly, but Prisma rejects PRISMA_CONFIG env var because it's yaml and the control panel in AWS only seems to support single line env vars
    z
    n
    • 3
    • 2
  • s

    steve

    08/15/2018, 6:46 PM
    Hey all, quick GraphQL Playground question (hopefully this is the right forum to ask). Is there any way to get GraphiQL behavior where the query is embedded in the url?
  • s

    steve

    08/15/2018, 6:47 PM
    The sharing service in Playground hasn't worked for ~a month, and we rely a lot on the ability to share queries during dev.
  • s

    steve

    08/15/2018, 6:48 PM
    Seems simpler/more reliable to just embed it in the url (more specifically, we're running this via Apollo Server)
  • m

    Mike

    08/15/2018, 7:29 PM
    Hey @nilan @divyendu I’m getting a prisma server crash every 15 mins in ECS. It seems to be related to my traffic. When we had less traffic, it was only crashing every 1-2 hours. Now that our traffic has scaled up, it’s crashing about every 15 mins. The crashes show different log messages each time, but all of them indicate that the server is no longer responding to network connections and all existing network connections appear to have been dropped. The load balancer eventually sees that the requests to the server are timing out and removes it from the target group and restarts it. But then 15 mins later (give or take), it crashes again with the same signs and symptoms. There are no log messages about resource constraints. No out of memory exceptions. Just log messages showing that various network connections are dying.
    😨 3
    👀 1
  • m

    Mike

    08/15/2018, 7:33 PM
    Here is some log data that you may peruse for your enjoyment. It shows 2 crash-and-restart cycles and the accompanying log messages associated with said crashes.
    prisma-crash-logs.txt
    n
    • 2
    • 7
  • c

    CCBCodeMonkey

    08/16/2018, 3:43 AM
    hey I had a working graphql yoga server
  • c

    CCBCodeMonkey

    08/16/2018, 3:43 AM
    and moved some files around, and now I get this:
  • c

    CCBCodeMonkey

    08/16/2018, 3:43 AM
    /mnt/c/Users/redacted/Sources/publab.api/node_modules/graphql-yoga/dist/index.js:317 throw new Error('No schema defined');
  • c

    CCBCodeMonkey

    08/16/2018, 3:43 AM
    when I try to start graphql-yoga
  • c

    CCBCodeMonkey

    08/16/2018, 3:44 AM
    but I have schema in
    src/generated/
  • c

    CCBCodeMonkey

    08/16/2018, 3:48 AM
    figured it out, it actually means my resolvers are undefined
  • c

    CCBCodeMonkey

    08/16/2018, 4:24 AM
    im trying to learn from this doc:
  • c

    CCBCodeMonkey

    08/16/2018, 4:24 AM
    https://www.prisma.io/docs/tutorials/build-graphql-servers/development/build-a-graphql-server-with-prisma-ohdaiyoo6c
  • c

    CCBCodeMonkey

    08/16/2018, 4:24 AM
    and there is a resolver they define here:
  • c

    CCBCodeMonkey

    08/16/2018, 4:25 AM
    Copy code
    posts: (_, args, context, info) => {
          return context.prisma.query.posts(
            {
              where: {
                OR: [
                  { title_contains: args.searchString },
                  { content_contains: args.searchString },
                ],
              },
            },
            info,
          )
        },
  • c

    CCBCodeMonkey

    08/16/2018, 4:25 AM
    with that OR:, but when I try to use the same syntax
  • c

    CCBCodeMonkey

    08/16/2018, 4:25 AM
    I get an error
  • c

    CCBCodeMonkey

    08/16/2018, 4:25 AM
    "Variable \"$_v0_where\" got invalid value {\"OR\":[{\"title_contains\":\"yo\"},{\"description_contains\":\"yo\"}]}; Field \"OR\" is not defined by type PaperWhereUniqueInput."
    n
    • 2
    • 2
  • k

    Kristof

    08/16/2018, 5:35 AM
    how can I update a prisma server running on heroku to the latest version?
  • k

    Kristof

    08/16/2018, 5:35 AM
    the development servers are version 1.15, the heroku server I just created is version 1.11
    n
    b
    • 3
    • 4
1...99100101...637Latest