https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# random
  • o

    olaf

    08/09/2017, 7:18 AM
    Does anyone know how to get all relations for a field in previousValues in a subscription query? I have a Server side subscription function that is meant to create a notification when things change on a
    post
    , for that it needs to compare the new values against the old to specify what exactly changed. It works well for scalar fields, but having trouble with relations. (By the way, am aware that the function itself won’t trigger from a change in the relation, will address that with the Dummy field workaround) What I have now:
    Copy code
    subscription {
      Post(filter: {
        mutation_in: [CREATED, UPDATED, DELETED]
      }) {
        updatedFields
        node {
          id
          name
          admins {id}
        }
        previousValues {
          id
          name
          admins: id 
        }
      }
    }
    So far
    updatedFields
    will give all admins on the post, but
    previousValues
    doesn’t and will not accept the same format. It does give the id of 1 admin when formatted as above.
    p
    • 2
    • 4
  • t

    travissperry

    08/09/2017, 6:00 PM
    Is it safe to store api keys in a Graphcool Function?
    n
    • 2
    • 2
  • s

    samjbmason

    08/09/2017, 6:06 PM
    With the graphql-request library what is the best way of writing tests for it
    n
    • 2
    • 1
  • m

    mj

    08/10/2017, 1:11 PM
    anyone know why I could be getting this error in apollo?
    Copy code
    Store error: the application attempted to write an object with no provided id but the store already contains an id of User:cj64seqkwhnb10183rc67zyaj for this object.
    n
    • 2
    • 2
  • l

    lewisblackwood

    08/13/2017, 9:30 PM
    I heard @schickling talking about StdLib in one of the recent JAMstack episodes - are Graphcool using StdLib in production? 💫
  • m

    mj

    08/14/2017, 1:10 PM
    anyone know of a simple way to redirect an un-authenticated response in a react-apollo application?
  • n

    nguyendanhson1989

    08/15/2017, 4:35 AM
    May anyone help me how to run Chromeless locally?
  • a

    auser

    08/15/2017, 9:35 PM
    what’s the issue, @nguyendanhson1989
    n
    • 2
    • 2
  • n

    nguyendanhson1989

    08/16/2017, 3:53 AM
    How can I execute multiple automation testcases by chromeless? Many thanks.
  • n

    nguyendanhson1989

    08/16/2017, 4:06 AM
    Do we have an expectation function to evaluate automation testcase result on chromeless?
  • n

    nguyendanhson1989

    08/17/2017, 8:34 AM
    Can anyone help me to fix this bug? Code:
  • n

    nguyendanhson1989

    08/17/2017, 8:34 AM
    var assert = require('assert'); const { Chromeless } = require('chromeless') var expect = require('expect.js'); describe('WA-158:Log in/Log out', function () { it.only('Access by Productivity Coach', function () { const assert = require('assert'); const { Chromeless } = require('chromeless') const chromeless = new Chromeless() chromeless.goto('https://saleshoodqa.stage.saleshood.com/auth/login'); chromeless.type('chromeless', 'input[id="user_login"]'); chromeless.type('chromeless', 'input[id="user_password"]'); chromeless.press(13); expect(chromeless.exists('div#ready')).to.be(true) //expect(true).to.be(!false) });
  • n

    nguyendanhson1989

    08/17/2017, 8:34 AM
    --------
  • n

    nguyendanhson1989

    08/17/2017, 8:34 AM
    Error
  • n

    nguyendanhson1989

    08/17/2017, 8:34 AM
    Error: expected { queue: { chrome: { options: [Object], runtimeClientPromise: {} }, flushCount: 1, commandQueue: { '0': [Object], '1': [] }, lastWaitAll: {} }, lastReturnPromise: {} } to equal true at Assertion.assert (node_modules\expect.js\index.js9613) at Assertion.be.Assertion.equal (node_modules\expect.js\index.js21610) at Assertion.(anonymous function) [as be] (node_modules\expect.js\index.js6924) at Context.<anonymous> (test\GeneralNavigationAndHomePage.js1351)
    m
    • 2
    • 8
  • n

    nguyendanhson1989

    08/17/2017, 9:39 AM
    What's wrong with my code?
  • n

    nguyendanhson1989

    08/17/2017, 9:39 AM
    var assert = require('assert'); const { Chromeless } = require('chromeless') var expect = require('expect.js'); describe('WA-158:Log in/Log out', function () { it.only('Access by Productivity Coach', async function () { this.timeout(40000); const assert = require('assert'); const { Chromeless } = require('chromeless') const chromeless = new Chromeless() await chromeless.goto('https://saleshoodqa.stage.saleshood.com/auth/login') .type('nguyendanhson1989@gmail.com', 'input[name="user[login]"]') .type('1_Abc_123', 'input[name="user[password]"]') .press(13) .wait('.status') const url = await chromeless.evaluate(url => window.location.href) //const result = await chromeless.exists('a[href="saleshoodqa.stage.saleshood"]') //https://saleshoodqa.stage.saleshood.com/ expect(url).to.be("https://saleshoodqa.stage.saleshood.com/") await chromeless.end()
  • n

    nguyendanhson1989

    08/17/2017, 9:39 AM
    ------------------------------------------
  • n

    nguyendanhson1989

    08/17/2017, 9:39 AM
    Error: wait(".status") timed out after 10000ms at Object.<anonymous> (node_modules\chromeless\dist\src\util.js13760) at step (node_modules\chromeless\dist\src\util.js4023) at Object.next (node_modules\chromeless\dist\src\util.js2153) at node_modules\chromeless\dist\src\util.js1571 at Promise (<anonymous>) at __awaiter (node_modules\chromeless\dist\src\util.js1112) at Timeout.<anonymous> (node_modules\chromeless\dist\src\util.js13081) npm ERR! Test failed. See above for more details.
  • n

    nguyendanhson1989

    08/17/2017, 9:49 AM
    please help
    i
    • 2
    • 3
  • g

    georgelovegrove

    08/17/2017, 8:50 PM
    Big decision here: - OneSignal push notifications using the graph.cool integration OR - Expo push notifications through a external Serverless function anyone share their experience?
    👍 1
  • n

    nguyendanhson1989

    08/22/2017, 7:57 AM
    it.only('Login-Access by Productivity Coach', async function () { this.timeout(300000); await chromeless.goto('https://app.stage.saleshood.com/') .type('xxxxx', 'input[name="user[login]"]') .type('xxxxx, 'input[name="user[password]"]') .click('input[type="submit"]') .wait(10000) .wait('.current-user-avatar') .click('/html/body/div[2]/div[1]/div/div[2]/ul/li[2]/ul/li[4]/a[href="https://saleshoodqa.saleshood.com/auth/logout"]') await chromeless.end() }); [2:55] ------------------------------- [2:55] Error: click(): node for selector /html/body/div[2]/div[1]/div/div[2]/ul/li[2]/ul/li[4]/a[href="https://saleshoodqa.saleshood.com/auth/logout"] doesn't exist at LocalRuntime.<anonymous> (node_modules\chromeless\dist\src\chrome\local-runtime.js23335) at step (node_modules\chromeless\dist\src\chrome\local-runtime.js3223) at Object.next (node_modules\chromeless\dist\src\chrome\local-runtime.js1353) at fulfilled (node_modules\chromeless\dist\src\chrome\local-runtime.js458) at <anonymous> [2:56] Does anybody can help me to check it
  • m

    martin

    09/12/2017, 5:38 PM
    Anyone watching? https://www.apple.com/apple-events/september-2017/
    🍏 6
  • w

    wojtek

    09/20/2017, 4:58 PM
    just launched something i've been working on for the past year 🙂 check it out https://www.producthunt.com/posts/rayfeed
    🎉 5
    a
    p
    b
    • 4
    • 6
  • n

    nik

    09/21/2017, 6:49 PM
    We're huge fans of Graphcool, and we're integrating Graphcool into our platform very soon. Here's some news my team is excited to share: We launched Manifold -- so developers can find, manage and share amazing services like LogDNA and Mailgun and on any cloud because we think it's unfortunate that developers on the major mono-clouds (like AWS) are forced to settle for services that treat developer experience as just an after thought. We've raised 15 million, hit our 1.0 launch and are opening the marketplace to any developer building great tech for other developers. Yes, that pretty much means we've poked AWS in the eye 👀 We even created a story about it: https://story.manifold.co If you're using cool services like Graphcool, I hope you'll check us out!
    🎉 2
    👀 1
    n
    w
    +4
    • 7
    • 10
  • p

    peterp

    09/22/2017, 4:43 PM
    for everyone using react native: https://twitter.com/peterpme/status/911268908086251522
    👍 3
  • t

    takeshiamano

    09/23/2017, 1:52 PM
    After learning about Facebook is relicensing React to MIT license. I wonder if there is similar announcement coming for GraphQL. Anybody got any headsup on this>
    🤔 1
    i
    n
    • 3
    • 5
  • a

    amann

    09/26/2017, 7:36 PM
    @dannyql What program is generating that for you?
  • d

    dannyql

    09/26/2017, 7:56 PM
    @amann There's a Graph View button in the top right hand corner of the Schema page in the graph.cool console
  • t

    tej

    09/27/2017, 3:50 PM
    Hi everyone! I was really inspired by Graphcool's talk at ZEIT day Berlin to create something that helps the Front-End community, so I created a basic project that helps newcomers join the fun world of GraphQL. Code => https://github.com/TejasQ/basically-fullstack-graphql Please star/share it if you think it could help people. Thanks! 😄
    🎉 3
    n
    h
    • 3
    • 4
1...8910...53Latest