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

    agartha

    06/07/2017, 11:27 PM
    Question, when in the request pipeline are permission queries executed?
  • a

    agartha

    06/07/2017, 11:49 PM
    Anyone has a good example of how to use the $node_... values in a permission query?
  • a

    agartha

    06/08/2017, 12:02 AM
    I have setup a update permission query like above. It is supposed to check on update if the version of the existing record is smaller than the version number of my update payload. However, I can still fire an update mutation with a lower or equal version number and the update still works. What is wrong here?
    -.js
  • a

    aurnik

    06/08/2017, 12:08 AM
    Is anyone having connection issues right now?
    👍 1
  • l

    lastmjs

    06/08/2017, 12:09 AM
    Yes
  • h

    hueezer

    06/08/2017, 12:35 AM
    I am
  • j

    jeffdiers

    06/08/2017, 12:35 AM
    same
  • s

    sajmil

    06/08/2017, 12:40 AM
    @aurnik yes
  • n

    nicholastancredi

    06/08/2017, 12:47 AM
    yes
  • n

    nicholastancredi

    06/08/2017, 12:47 AM
    😞
  • a

    aurnik

    06/08/2017, 12:53 AM
    Yeah I can’t find the page that had the status information when it went down last time Never mind it’s right here: https://status.graph.cool/
    n
    h
    j
    • 4
    • 3
  • l

    lastmjs

    06/08/2017, 2:56 AM
    We keep running into a potential bug when deleting data from the GUI. If we delete a record that other records depend on, then when we view the dependent records an error pops up and the records aren't shown. We then can't delete the dependent records because they won't show up. This has happened multiple times and we just end up wiping the database so everything will work again
  • l

    lastmjs

    06/08/2017, 2:58 AM
    The error pops up because the dependent records have non-nullable fields that have been deleted
  • l

    lastmjs

    06/08/2017, 6:57 AM
    I'm trying to listen to created or updated user nodes, and if updated just one field in particular
  • l

    lastmjs

    06/08/2017, 6:57 AM
    Here is my subscription
  • l

    lastmjs

    06/08/2017, 6:57 AM
    ```
  • l

    lastmjs

    06/08/2017, 6:57 AM
    Copy code
    subscription {
      User(filter: {
        OR: [
          {
            mutation_in: [CREATED]
          },
          {
           	mutation_in: [UPDATED]
        		updatedFields_contains: "ltiJWT" 
          }
        ]
      }) {
        node {
          id
          ltiJWT
        }
      }
    }
  • l

    lastmjs

    06/08/2017, 6:57 AM
    But I get this error:
    Copy code
    "Query does not pass validation. Violations:
    
    Argument 'filter' expected type 'UserSubscriptionFilter' but got: {OR: [{boolean: true}, {boolean: false, updatedFields_contains: "ltiJWT"}]}. Reason: [in field 'OR'] [at index #1] Unknown field 'updatedFields_contains' is not defined in the input type 'UserSubscriptionFilter'. (line 9, column 7):
        		updatedFields_contains: "ltiJWT" 
          ^ (line 9, column 7):
        		updatedFields_contains: "ltiJWT" 
          ^ (line 2, column 16):
      User(filter: {
                   ^
     (line 9, column 7):
        		updatedFields_contains: "ltiJWT" 
          ^"
    n
    • 2
    • 2
  • l

    lastmjs

    06/08/2017, 6:58 AM
    Are no updates allowed on Users?
  • y

    yolen

    06/08/2017, 9:43 AM
    Dear all. I Cannot make the quickstart work. Can you help? Here is the tail of my npm log
    Copy code
    1648 http fetch GET 304 <https://registry.npmjs.org/react-relay> 61ms (from cache)
    1649 silly fetchPackageMetaData error for react-relay@1.0.1-alpha.2 No matching version found for react-r
    elay@1.0.1-alpha.2
    1650 verbose type version
    1651 verbose stack react-relay: No matching version found for react-relay@1.0.1-alpha.2
    1651 verbose stack     at pickManifest (/home/yolen/.nvm/versions/node/v6.10.3/lib/node_modules/npm/node_
    modules/pacote/node_modules/npm-pick-manifest/index.js:61:11)
    1651 verbose stack     at fetchPackument.then.packument (/home/yolen/.nvm/versions/node/v6.10.3/lib/node_
    modules/npm/node_modules/pacote/lib/fetchers/registry/manifest.js:51:18)
    1651 verbose stack     at tryCatcher (/home/yolen/.nvm/versions/node/v6.10.3/lib/node_modules/npm/node_mo
    dules/bluebird/js/release/util.js:16:23)
    1651 verbose stack     at Promise._settlePromiseFromHandler (/home/yolen/.nvm/versions/node/v6.10.3/lib/n
    ode_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
    1651 verbose stack     at Promise._settlePromise (/home/yolen/.nvm/versions/node/v6.10.3/lib/node_modules
    /npm/node_modules/bluebird/js/release/promise.js:569:18)
    1651 verbose stack     at Promise._settlePromise0 (/home/yolen/.nvm/versions/node/v6.10.3/lib/node_module
    s/npm/node_modules/bluebird/js/release/promise.js:614:10)
    1651 verbose stack     at Promise._settlePromises (/home/yolen/.nvm/versions/node/v6.10.3/lib/node_module
    s/npm/node_modules/bluebird/js/release/promise.js:693:18)
    1651 verbose stack     at Async._drainQueue (/home/yolen/.nvm/versions/node/v6.10.3/lib/node_modules/npm/
    node_modules/bluebird/js/release/async.js:133:16)
    1651 verbose stack     at Async._drainQueues (/home/yolen/.nvm/versions/node/v6.10.3/lib/node_modules/npm
    /node_modules/bluebird/js/release/async.js:143:10)
    1651 verbose stack     at Immediate.Async.drainQueues (/home/yolen/.nvm/versions/node/v6.10.3/lib/node_mo
    dules/npm/node_modules/bluebird/js/release/async.js:17:14)
    1651 verbose stack     at runCallback (timers.js:672:20)
    1651 verbose stack     at tryOnImmediate (timers.js:645:5)
    1651 verbose stack     at processImmediate [as _immediateCallback] (timers.js:617:5)
    1652 verbose cwd /home/yolen/Downloads/quickstart-with-relay
    1653 verbose Linux 4.8.0-53-generic
    1654 verbose argv "/home/yolen/.nvm/versions/node/v6.10.3/bin/node" "/home/yolen/.nvm/versions/node/v6.10
    .3/bin/npm" "install"
    1655 verbose node v6.10.3
    1656 verbose npm  v5.0.3
    1657 error code ETARGET
    1658 error notarget No matching version found for react-relay@1.0.1-alpha.2
    1659 error notarget In most cases you or one of your dependencies are requesting
    1659 error notarget a package version that doesn't exist.
    1660 verbose exit [ 1, true ]
    🙃 1
    n
    • 2
    • 1
  • s

    sdubois

    06/08/2017, 1:41 PM
    Hi! I was wondering if Graphcool had plans to assemble a demo with the upcoming Gatsby 1.0? As its data layer is GraphQL based it would be awesome to see their combination to generate static sites (and from there generalize to the more complex cases of e.g adding server-side things like authentication)
    👍 1
    s
    n
    • 3
    • 3
  • h

    hvillain

    06/08/2017, 3:08 PM
    Hello all! What's the best way to store images right now? File API, Image API, external url? Thanks!
    n
    • 2
    • 1
  • m

    makarst

    06/08/2017, 3:24 PM
    Hello! I’m trying to figure out why am I not getting proper CreateInput interface for one-to-many mutation in my project. I want to use nested mutations, however, my CreateAuthorInput looks like this:
    Copy code
    name: String!
    postsIds: [ID!]
    clientMutationId: String!
    instead of this:
    Copy code
    name: String!
    postsIds: [ID!]
    posts: [AuthorpostsPost!]
    clientMutationId: String!
    Since it’s missing
    posts: [AuthorpostsPost!]
    I can’t do a nested create mutation. I created a new project with a same schema and it has correct fields. I also got a server error while copy-pasting and running schema: Request ID: cj3okbkysermh01309qbn0bv2 I don’t know if this is related, but what should I do in this situation? How do I update my relations so they contain
    posts: [AuthorpostsPost!]
    in CreateInput params? Thank you! UPD: Resolved
    n
    • 2
    • 3
  • u

    userzach

    06/08/2017, 4:15 PM
    From the GraphCool Tutorial: User Authentication with Auth0 for React and Apollo Note reads:
    Copy code
    We redirect to /login to give the user the possibility to add additional required information. If your User type has no additional required fields, **you can simply call the user query to check if there is already a user with the auth0IdToken generated by Auth0 as detailed above. If there is no such user, you can immediately run the createUser mutation instead of redirecting to /login.** If there already is such a user, you can redirect the user to / instead.
    My Question: Is it recommending to call (or read) the
    User Query
    within component did mount? Is this possible? Thanks
    Copy code
    // in src/components/LoginAuth0.js
    componentDidMount() {
      this._lock.on('authenticated', (authResult) => {
        window.localStorage.setItem('auth0IdToken', authResult.idToken)
        this.props.router.replace(`/login`)
      })
    }
  • l

    lastmjs

    06/08/2017, 4:24 PM
    The descriptions for permissions do not save appropriately
    n
    a
    • 3
    • 8
  • e

    eliezedeck

    06/08/2017, 5:51 PM
    @nilan I am following the issues on Github about the 0.7 websocket thing. Has the implementation been completed for it on the Graph.cool side? I have not seen anyone from us say any announcements on Github about that update.
    n
    • 2
    • 2
  • n

    nilan

    06/08/2017, 5:53 PM
    Hey everyone, we're super excited about the Reactiflux Q&A session that's starting in about 2 hours 🎉 If there's something you always wanted to know about GraphQL graphql, Serverless ⚡ or Graphcool graphcool please join the discussion, it'll be great fun! The team is already looking forward to your ideas, thoughts and questions! 😎 https://twitter.com/reactiflux/status/872635186390892544
    graphcool 1
    e
    h
    • 3
    • 7
  • j

    jpinlac

    06/08/2017, 7:28 PM
    Hi, I'm going through the onboarding and getting an error using the quickstart-with-apollo with Angular + Apollo. I'm getting the following error after running
    npm start
    .
    npm-debug.log
  • n

    nikolasburk

    06/08/2017, 7:43 PM
    Hey everyone 🙌 I’ve been working on an extensive tutorial to help you get started with Relay Modern in the past few weeks, tonight we’ve finally released it! 🚀 https://www.graph.cool/docs/tutorials/relay-modern-getting-started-woodito7ug/
    👍 2
    👍🏻 5
    🚀 2
    🦜 3
  • f

    fourcolors

    06/08/2017, 8:45 PM
    Hey, is there a place I can keep my Stripe secret in graph.cool for later use? Or should I just created a data model for that or something?
1...221222223...637Latest