https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# prisma-whats-new
  • f

    Florin

    01/22/2018, 10:38 PM
    hey guys quick question by using apollo with react in the frontend do I still use redux for all the local state or can this all be done using apollo?
    m
    e
    l
    • 4
    • 4
  • a

    Adam

    01/22/2018, 11:33 PM
    Hi guys.. when Iquery this:
    Copy code
    {
      users(where: {
        email_contains: "adam"
      }) {
        id
        email
      }
    }
    I get this:
    Copy code
    {
      "errors": [
        {
          "message": "Unknown argument \"where\" on field \"users\" of type \"Query\".",
          "locations": [
            {
              "line": 2,
              "column": 9
            }
          ]
        }
      ]
    }
    my query resolver is this:
    Copy code
    async function users(parent, args, ctx, info) {
      const requestingUserId = getUserId(ctx)
      return await ctx.db.query.users(args, info)
    }
    please help me to get it work
    a
    • 2
    • 3
  • a

    agartha

    01/22/2018, 11:58 PM
    What does your schema look like?
  • m

    McArthur

    01/23/2018, 12:07 AM
    Looks like the
    CodeStorageExceededException
    is back today 😞
  • m

    matty

    01/23/2018, 12:44 AM
    Deploying functions is not possible again?
  • m

    matty

    01/23/2018, 1:32 AM
    Same error... I thought this had been mitigated just the other day?
    Copy code
    software.amazon.awssdk.services.lambda.model.CodeStorageExceededException: Code storage limit exceeded. (Service: null; Status Code: 400; Error Code: CodeStorageExceededException; Request ID: e1f1976a-ffd6-11e7-a002-5d06f225e7b1)
  • p

    phil

    01/23/2018, 1:40 AM
    Where does the
    DateTime
    graphql type come from in Prisma?
    • 1
    • 1
  • f

    Francesco Maria Falini

    01/23/2018, 1:40 AM
    hi, i have a problem building the Instagram ios example, i think i followed every step of the guide (i use Xcode8 ), i tried deleting DerivedData, adding and removing the scripts but nothing.
    Problem_building_Instagram_example_Ios.txt
  • f

    Francesco Maria Falini

    01/23/2018, 1:42 AM
    can u help me?
  • s

    shane

    01/23/2018, 5:32 AM
    @shane pinned a message to this channel.
  • m

    matar15

    01/23/2018, 6:18 AM
    what is difference between
    prisma
    and
    graphcool
    ?
    p
    • 2
    • 5
  • w

    wojtek

    01/23/2018, 8:57 AM
    Hey guys, I was reading this http://graphql.org/learn/authorization/ and I was wondering, what is the best practice to deal with authorization failures. If I e.g. request a draft I didn't create, do I return an empty response? What is the best practice about informing the client about the error? Status Code, Response Body, Headers or something different?
    • 1
    • 2
  • l

    lewisblackwood

    01/23/2018, 9:59 AM
    We're seeing quite a few timeouts/Cloudflare errors/slow responses for queries that shouldn't be particularly long-running. Is there anything that can be done to improve this? Or is just a case that we should move over to a private cluster sooner rather than later?
  • k

    Kat

    01/23/2018, 10:01 AM
    is it just me or are the tutorials not loading? https://www.prismagraphql.com/docs/tutorials
    l
    c
    m
    • 4
    • 7
  • m

    Moritz

    01/23/2018, 10:24 AM
    Hi, is there a clean and easy prisma command to nuke the database running in the public cluster?
  • m

    max

    01/23/2018, 10:30 AM
    anyone else feel like the quality of the discussions in this slack channel aren't what they used to be? or maybe I have rosie tinted glasses
    😱 1
    m
    • 2
    • 3
  • m

    max

    01/23/2018, 10:36 AM
    Also the function deployment on graphcool-framework has been down for a while and it's not the first time. Feels like the gc team are struggling with this one
  • m

    Moritz

    01/23/2018, 10:38 AM
    Hi, I have an idea/suggestion. I find it a little bit tedious to always copy/paste my graphql datamodels from the prisma backend to the server graphql type definition file, 90% of my models are reused anyway. Wouldnt it be possible to simply add an anotation like "expose" and "private" to the prisma type definitions and their parameters and include the types in the code generation process? with default to "private", this would not change the current behavior and could be handy to quickly export the types you want to expose from prisma in a DRY manner without having to copy paste the common types all the time.
    🦜 2
    👍 2
    ❤️ 3
    m
    n
    • 3
    • 8
  • j

    Joe Fazzino

    01/23/2018, 10:53 AM
    Not sure if this is a prisma issue or I can't read but when I try and create a type with a field that accepts an array of strings i get an error saying that "Field 0 is not defined by type __PRISMA_INPUT_TYPE__ at value.TYPE.create.ARRAYINPUT. My input is ["hello", "world"] Edit: I fixed it by using {set: ARRAYINPUT}, I love this tool but the docs need some work. Might make a PR later with some doc changes.
  • n

    Nikhil

    01/23/2018, 10:53 AM
    Hi, I tried to change the field type in data model from Boolean to String and when i deployed my changes I was under impression that prisma will throw the error. However, It did not. For this I raised the issue https://github.com/graphcool/prisma/issues/1687 can anyone tell me why is this behaviour?
    m
    r
    • 3
    • 3
  • d

    dohomi

    01/23/2018, 11:00 AM
    Hello are there any issues on the API? I receive currently
    No 'Access-Control-Allow-Origin' header is present on the requested resource
    errors on all my requests
    t
    m
    n
    • 4
    • 6
  • n

    Nick Luger

    01/23/2018, 11:02 AM
    I'm getting 504s too... status is saying that simple API is fine https://status.graph.cool/ ?
  • m

    Moritz

    01/23/2018, 11:09 AM
    my seeds from seed.graphql dont get seeded in prisma cluster when i run "prisma deploy". Is this intended? Or did make a syntax error? no errors displayed.
    r
    • 2
    • 4
  • m

    matty

    01/23/2018, 11:52 AM
    I've been seeing the Cloudfront 5xx errors for 2-3 weeks, reported via sentry.io
  • m

    matty

    01/23/2018, 11:53 AM
    I've mentioned these Cloudfront errors to the Graphcool team a couple of times but not yet received a reply, together with the function deploy issue, and an support email with simple instructions for data export that I couldn't get to work for my project - I get a very strong sense the Graphcool team are struggling at the moment
    😞 3
  • r

    rick

    01/23/2018, 12:23 PM
    when you want to make several custom resolvers public in Prisma, and the rest private, should you
    disableAuth: true
    or not? Or how should that work now?
    m
    • 2
    • 4
  • m

    matty

    01/23/2018, 12:57 PM
  • m

    matty

    01/23/2018, 12:57 PM
    @nilan seem to be having troubles uploading this image to a thread, so uploading here in the main channel
  • m

    matty

    01/23/2018, 12:58 PM
    these are all instances of the api.graph.cool endpoint returning 504 errors, you should be seeing these in your Cloudfront CDN reports
  • m

    matty

    01/23/2018, 1:00 PM
    this is absolutely a 504 generated by GC's cloudfront - when i dig into the details of each event I see this is the response body:
    Copy code
    <TITLE>ERROR: The request could not be satisfied</TITLE>
    </HEAD><BODY>
    <H1>ERROR</H1>
    <H2>The request could not be satisfied.</H2>
    <HR noshade size="1px">
    CloudFront attempted to establish a connection with the origin, but either the attempt failed or the origin closed the connection.
    <BR clear="all">
    <HR noshade size="1px">
    <PRE>
    Generated by cloudfront (CloudFront)
1...536537538...637Latest