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

    mike.johnson

    08/24/2017, 4:04 AM
    this happens both from my work IP and my home IP
  • m

    mike.johnson

    08/24/2017, 4:04 AM
    unlikely they are both already banned?
  • q

    q666

    08/24/2017, 9:39 AM
    How do u guys build graphcool functions? is the only way via console.graphcool? don’t see any test in https://github.com/graphcool-examples/functions
    d
    • 2
    • 1
  • g

    gauravkaushik

    08/24/2017, 9:41 AM
    Hi everyone, I'm fairly new to using Graphcool. I'd like to know how does it handle server side caching? If I were to integrate a layer of Akamai caching before hitting my graphcool server, how should I go about it? Since I'm using
    relay
    on client-side, that means I'll have varying queries from client depending what data I don't already have in relay's local cache. If you have any articles on this, that'll really help. Thanks in advance! and really cool product btw
    d
    • 2
    • 6
  • g

    gerardsans

    08/24/2017, 5:14 PM
    My slides Building a real-time Q&A app using GraphQL https://t.co/JXoHFBzQCC +300 att last night at React London! Including graphcool + CLI
    🎉 3
    n
    • 2
    • 1
  • p

    panzupa

    08/24/2017, 5:26 PM
    Hi guys, I wonder what is best approach in relay for master-detail case? should I use react router for that as well? can anyone advise?
  • p

    panzupa

    08/24/2017, 5:43 PM
    I found only that https://blog.graph.cool/getting-started-with-relay-modern-46f8de6bd6ec which is quite comprehensive 🙂
  • m

    mechanical-turk

    08/24/2017, 5:50 PM
    hey everyone, quick question: What’s the best place to do mutation validations? I’m looking for very simple stuff, such as asserting non-empty strings
  • m

    mechanical-turk

    08/24/2017, 5:51 PM
    on a server application, the schema would be one place to do such validations, but i can’t seem to pinpoint the best place to do this in graph.cool
    d
    • 2
    • 4
  • y

    yolen

    08/24/2017, 7:43 PM
    Copy code
    {
      _allContentsMeta(filter: 
        {law: "cj6nx0xuyq9gy0173pt331kkn"}) {
        count
      }
    }
    a
    n
    • 3
    • 5
  • y

    yolen

    08/24/2017, 7:44 PM
    Law has a one to many relation to Content. How to count how many Contents related to law?
  • y

    yolen

    08/24/2017, 7:44 PM
    Above gives and error. I have trie using an array but with no luck
  • y

    yolen

    08/24/2017, 7:45 PM
    I get the error
    Copy code
    {
      "data": null,
      "errors": [
        {
          "message": "Argument 'filter' expected type 'ContentFilter' but got: {law: \"cj6nx0xuyq9gy0173pt331kkn\"}. Reason: 'law' Expected 'LawFilter', found not an object. (line 3, column 5):\n    {law: \"cj6nx0xuyq9gy0173pt331kkn\"}) {\n    ^\n (line 3, column 6):\n    {law: \"cj6nx0xuyq9gy0173pt331kkn\"}) {\n     ^\n (line 3, column 11):\n    {law: \"cj6nx0xuyq9gy0173pt331kkn\"}) {\n          ^",
          "locations": [
            {
              "line": 3,
              "column": 5
            },
            {
              "line": 3,
              "column": 6
            },
            {
              "line": 3,
              "column": 11
            }
          ]
        }
      ]
    }
  • a

    alechp

    08/24/2017, 8:21 PM
    Is lokka still the recommended nodejs lib for server-side queries ?
    n
    • 2
    • 15
  • n

    nicolas-wobiz

    08/24/2017, 8:43 PM
    Hi, I'm like really new to this world. I already deployed serverless and exported the new keys from amazon. How do I run the .js tests from the example after adding the remote lines?
  • d

    dardub

    08/24/2017, 9:03 PM
    Reading a blog post: https://dev-blog.apollodata.com/designing-graphql-mutations-e09de826ed97 They recommend constructing mutations like the following:
    Copy code
    mutation MyMutation($input: UpdatePostInput!) {
      updatePost(input: $input) { ... }
    }
    
    # vs.
    
    mutation MyMutation($id: ID!, $newText: String, ...) {
      updatePost(id: $id, newText: $newText, ...) { ... }
    }
    Is this possible in graphcool?
    d
    a
    n
    • 4
    • 18
  • d

    denali

    08/24/2017, 9:13 PM
    Hi Folks
  • d

    denali

    08/24/2017, 9:13 PM
    I am a bit new to JavaScript and I have perhaps a simple question about: https://github.com/adieuadieu/chromeless
  • d

    denali

    08/24/2017, 9:13 PM
    I've successfully cloned, installed and run some of the example tests locally
  • d

    denali

    08/24/2017, 9:13 PM
    Pretty awesome!
  • d

    denali

    08/24/2017, 9:14 PM
    I was hoping to run many tests simultaneously
  • d

    denali

    08/24/2017, 9:14 PM
    Is there a way to execute this locally, or is this not possible?
  • d

    denali

    08/24/2017, 9:14 PM
    Perhaps this gets to the root of the single threaded design of JavaScript
  • d

    denali

    08/24/2017, 9:15 PM
    Feel free to direct me to other docs
  • d

    denali

    08/24/2017, 9:15 PM
    Second question, much more minor
  • d

    denali

    08/24/2017, 9:15 PM
    Running an example test, I get this warning message:
  • d

    denali

    08/24/2017, 9:16 PM
    Copy code
    (node:29807) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: No such target id: undefined
    (node:29807) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  • d

    denali

    08/24/2017, 9:16 PM
    Any idea what this is about?
    n
    • 2
    • 2
  • d

    dardub

    08/24/2017, 9:17 PM
    @denali Is this related to graphcool?
  • d

    denali

    08/24/2017, 9:20 PM
    ah, not sure: this is the slack community linked to from here: https://github.com/graphcool/chromeless
1...317318319...637Latest