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

    nilan

    02/02/2017, 8:11 PM
    we call this nested mutations simple smile
  • b

    bruce

    02/02/2017, 8:11 PM
    I see!
  • n

    nilan

    02/02/2017, 8:12 PM
    welcome @szlezak, @ayoub_lamhidra and @krischamp πŸš€
  • b

    bruce

    02/02/2017, 8:14 PM
    Sweet that worked awesome.
  • b

    bruce

    02/02/2017, 8:14 PM
    thx!
  • n

    nilan

    02/02/2017, 8:20 PM
    πŸ’ͺ anytime!
  • a

    ayoub_lamhidra

    02/02/2017, 9:26 PM
    thank you @nilan
  • m

    malone

    02/03/2017, 12:04 AM
    Hey, here with another quick question: If I have a one-to-many relation, is the order of the many guaranteed?
  • n

    nilan

    02/03/2017, 6:49 AM
    hey @malone, you can use the
    orderBy
    argument to guarantee a specific ordering also on nested fields
  • n

    nilan

    02/03/2017, 6:49 AM
    what order do you think of?
  • n

    nilan

    02/03/2017, 6:54 AM
    hey there @haybu, @cfsanderson and @banderson πŸ‘‹
    πŸ‘‹ 1
  • a

    aryan

    02/03/2017, 5:30 PM
    Hey guys, I have a n00b graphql question. Given this component, how can I use the paramter from react router in my query:
    Copy code
    import gql from 'graphql-tag'
    import { graphql } from 'react-apollo'
    class Module extends React.Component {
      render () {
        return (
            <div className='pt3'>
              id is {this.props.params._id} , 
               name is: ..
            </div>
        )
      }
    }
    
    const FeedQuery = gql`query {
      Module(id="") { // <-- this is where I'd need the parameter
        name
      }
    }`
    
    export default graphql(FeedQuery)(Module)
    n
    • 2
    • 3
  • a

    aryan

    02/03/2017, 6:12 PM
    Sorry to bug you so many times about this, is relation name not editable anymore with the new UI?
  • a

    aryan

    02/03/2017, 6:13 PM
    πŸ˜‘ 1
  • n

    nilan

    02/03/2017, 6:13 PM
    Hey @aryan, we just rolled out a fix for that issue! Thanks πŸ™‚
  • a

    aryan

    02/03/2017, 6:13 PM
    Haha thanks πŸ™‚
  • n

    nilan

    02/03/2017, 6:13 PM
    Should be deployed any minute now
  • a

    aryan

    02/03/2017, 6:41 PM
    πŸ™ƒ 1
    πŸŽ‰ 4
  • a

    ambethia

    02/04/2017, 2:07 AM
    @aryan https://github.com/ambethia/kid-kredits/blob/master/src/components/FamilyEdit.js#L13
  • a

    ambethia

    02/04/2017, 2:09 AM
    http://dev.apollodata.com/react/queries.html#graphql-options
  • a

    ambethia

    02/04/2017, 2:10 AM
    Doh, nevermind, I just saw the thread where @nilan replied! I'm not used to spotting those threads in Slack yet
  • n

    nilan

    02/04/2017, 7:50 AM
    better two answers than none πŸ˜›
  • a

    alex_ye

    02/04/2017, 8:45 AM
    Hi, guys! Thanks for the awesome service! I have a question: is there any way to detect if a user goes offline? It is very easy to do with Firebase, as they have onDisconnect() callback. Does subscription api have anything similar?
    n
    t
    • 3
    • 19
  • a

    artyom

    02/04/2017, 4:42 PM
    πŸ‘‹ welcome to the Graphcool community @kimf @vipin @unkleho @bojicas @hailwood πŸ™‚
    ❀️ 2
    πŸŽ‰ 1
  • k

    kimf

    02/04/2017, 4:42 PM
    Thanks thanks
  • k

    kimf

    02/05/2017, 1:08 AM
    Hello hello. Was asked by my terminal to contact you in slack and give you the
    Request ID: ciyryx55b9f440171chwltxlh
    πŸ˜„
    n
    • 2
    • 2
  • v

    vinspee

    02/05/2017, 2:05 AM
    Hey All! New to GraphQL in general. I’m trying to use Graphcool to create a live Q&A app. I’m using Auth0 to allow users to login with google. I’m also using next.js with their Apollo example. I’m trying to figure out the best way to handle auth. I’m currently trying to use multiple HOCs to connect to graphql and redux, and somewhere therein, I’m missing something. Any thoughts? https://gist.github.com/ea2e01adb0c832ef9670ca6f4b5567ad
    n
    • 2
    • 5
  • a

    ambethia

    02/05/2017, 3:59 AM
  • a

    ambethia

    02/05/2017, 3:59 AM
  • a

    ambethia

    02/05/2017, 3:59 AM
    What kind of name would I give the above relation, to avoid parameter names like
    kidsKidId
    ?
    n
    • 2
    • 7
1...979899...637Latest