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

    the_bluescreen

    08/02/2017, 3:24 PM
    Hey all, I published the new version of RAN, graphql + next.js boilerplate on npm and github. https://github.com/Sly777/ran/releases/tag/0.3.1 It started to support graphqlconfig, playground, voyager and more.. Don’t hasisate to write any opinion 🙂
    🎉 2
  • m

    martin

    08/02/2017, 3:37 PM
    Currently, the only way I know to get the results of a query inside a React component is to bind the query to the component upon initialization. This means that once component is loaded, the query results don’t change. But what if the actions performed inside that component change the query? I.e. is there a way to launch a query from within the component?
    Copy code
    export default graphql(getAllNotifications, {
      options: (props) => ({
        variables: {
          notificationsFilter: { source: { id: __THIS_CHANGES_INSIDE_COMPONENT__ } }
        }
      })
    })(MyComponent)
    n
    • 2
    • 4
  • j

    john_doe

    08/02/2017, 3:38 PM
    Hi ladies and gents, I'm in the process of learning react (educational project), and wish to use graphcool as my backend. Any boilerplates out there? (none I could find on Google :O)
    n
    m
    • 3
    • 5
  • p

    peterp

    08/02/2017, 3:45 PM
    is it possible to return an array of reminders?
    Copy code
    query {
        user {
          contacts(filter: { isActive: true }) {
            id
            reminders {
              id
              type
            }
          }
        }
      }
    n
    • 2
    • 1
  • p

    peterp

    08/02/2017, 3:45 PM
    can i optimize this query somehow?
  • n

    nathhorrigan

    08/02/2017, 3:58 PM
    Hi Guys, If anyone could head over to -> https://github.com/graphcool/chromeless/issues/142 to help me with an issue that would be awesome!! 👍
  • s

    samjbmason

    08/02/2017, 5:10 PM
    IS there a bug logged that when you create a function that includes a field that is a date when you click on the example event it throws an error?
    n
    • 2
    • 2
  • p

    pcooney10

    08/02/2017, 5:12 PM
    Is it possible to return an array with Schema Extensions?
    n
    • 2
    • 4
  • s

    spences10

    08/02/2017, 6:09 PM
    Can i push a
    .graphql
    schema to graphcool via the cli?
  • t

    tornros

    08/02/2017, 6:58 PM
    Do you have datacenters located in EU?
    • 1
    • 1
  • l

    leandros

    08/02/2017, 7:03 PM
    It seems to me that simultaneous use of slack and forum is problematic. You may consider provide distinct roles to each, even better (in my opinion) eliminate multiple sources and keep a single "source of truth".
    👍 1
  • s

    stton

    08/02/2017, 8:00 PM
    Do i have to do anything specific when subscribing toa relational field
    a
    • 2
    • 1
  • s

    stton

    08/02/2017, 8:02 PM
    subscription subTalent { Talent(filter: {mutation_in: [UPDATED]}) { node { name featuredProduct { id } } } }
  • s

    stton

    08/02/2017, 8:03 PM
    changing the name in the data, i see it in playground, updating the featuredProduct, I receive nothing
    d
    • 2
    • 2
  • s

    samjmckenzie

    08/02/2017, 10:46 PM
    Hi everyone. Does anyone know if it's possible to create two separate headless Chromeless windows?
  • s

    samjmckenzie

    08/02/2017, 10:48 PM
    I'm asking because I need to access a website from 2 different "sessions" (basically just a different set of cookies for each "window")
  • a

    allpwrfulroot

    08/02/2017, 11:01 PM
    Question on server-side subscriptions
  • a

    allpwrfulroot

    08/02/2017, 11:02 PM
    I want to send a welcome email, with subscription query
    Copy code
    subscription {
      User(filter: {
        mutation_in: [CREATED]
      }) {
        node {
          id
          email
        }
      }
    }
    and inline code currently at
    Copy code
    module.exports = (event) => {
      const { id, email } = event.data.User.node
      console.log('A THING!! ', email)
    }
  • a

    allpwrfulroot

    08/02/2017, 11:05 PM
    Right now, a new user being created does not result in the function triggering at all: no logs appear. Has anyone else experienced this?
    d
    n
    • 3
    • 8
  • j

    jhardman

    08/03/2017, 4:50 AM
    Hey guys, is there a way to ignore a filter if the value is empty? I have 3 filters in my UI, but I only want them to apply if a user has selected a value. I've been super stuck on this, so if anyone has an idea on how to fix this that would be amazing. graphql(gql` query( $cityValue: ID!, $practiceTypeValue: ID!, $visitReasonValue: ID! ) { allPractices ( filter: { city: { id: $cityValue } practiceType: { id: $practiceTypeValue } visitReason: { id: $visitReasonValue } } ) { name, id, contact { website } reviews { name, rating } file { secret } } } `, { name: "practices" }, { options: ({practiceTypeValue, cityValue }) => ({ variables: { practiceTypeValue, cityValue } }) })
    d
    • 2
    • 4
  • s

    seanmckenna

    08/03/2017, 5:02 AM
  • s

    seanmckenna

    08/03/2017, 5:02 AM
    Why is there a horizontal scroll bar?
    a
    a
    • 3
    • 3
  • p

    Pieter

    08/03/2017, 8:51 AM
    https://www.graph.cool/docs/reference/file-handling/image-api-atiede8ata/ I just stumbled upon this. I've been using the file api out of the box for my images up until now, with the url property to display the images. I now see that I can resize the images if I use this, but it's a manual process to now get the secret and link it to the image api url. Are there any plans to change the url property to rather use this api in future for files that are images? Or if its not simple enough to calculate whether its a image or not, maybe just have an additional property called imageUrl? What would also be amazing is if we could resize or crop upon save rather than storing a large image and then resizing it on the fly when downloading. @nilan should I create a issue for this?
    n
    • 2
    • 3
  • g

    gaddarcarlo

    08/03/2017, 9:52 AM
    Hi
  • g

    gaddarcarlo

    08/03/2017, 9:52 AM
    I'm currently using default Email-Password Authentication, what do you recommend for user actions such as forgot password?
  • p

    Pieter

    08/03/2017, 10:32 AM
    @gaddarcarlo I'm using auth0. It was definitely worth the learning curve for me
  • e

    ernoaapa

    08/03/2017, 11:58 AM
    Hi guys! I'm first time testing out graph.cool and I have problem. Hopefully someone can help. I have model
    OsDefinition
    and I have
    owner
    relation to the
    User
    . Now I try to make it so that
    allOsDefinitions
    returns only the OsDefinitions what current user owns. Is there way to filter what the
    allOsDefinitions
    returns? I thought this permission query in OsDefinition would work, but it doesn't, just gives error:
    Copy code
    query ($node_id: ID!, $user_id: ID!) {
      SomeOsDefinitionExists( 
        filter: {
          id: $node_id,
          owner:{id:$user_id}
        }
      )
    }
  • m

    matty

    08/03/2017, 12:15 PM
    anyone else getting 504 gateway timeout from simple api endpoint?
  • r

    rpeterson

    08/03/2017, 12:25 PM
    Is there an API planned or undocumented to create Projects? Looking at integrating where the CLI won’t be available when boot strapping a project.
  • a

    anton-b

    08/03/2017, 12:35 PM
    @matty i'm having problems as well
1...295296297...637Latest