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

    mentallyretired

    07/11/2017, 1:19 PM
    since theres just so much to learn its hard to filter what tech I might be interested in, so I would agree that education and awareness are the two most important things the community can share right now
  • g

    gojutin

    07/11/2017, 1:20 PM
    And I agree with @notrab. You guys’ efforts in the GraphQL community has been a huge part of my success in learning it. Thanks for taking the time to make such great content!
    ❤️ 3
  • d

    dankent

    07/11/2017, 1:21 PM
    I can recommend the apollo / graphcool tutorial on howtographql - I'm already using apollo for queries and mutations but I picked up a few useful bits of info. I hadn't used subscriptions when I went through it and it does a really good job of explaining how they work.
  • n

    nilan

    07/11/2017, 1:23 PM
    Thanks so much everyone <!here|@here> ❤️ If you want to help someone to get started with GraphQL or want to improve your understanding in a certain area, hopefully now you have a good resouce to share 🙂 For example, the
    graphql-js
    track was SUPER helpful to improve my understanding of how backend and frontend are connected 🙂
    🎉 2
    🍻 7
    v
    • 2
    • 1
  • i

    ilja

    07/11/2017, 1:29 PM
    Hey guys it has been a while since I checked in, wanted to ask if email / password auth has been extended to support password changes / email verification / email changes etc… I believe there was a github issue for this, but I can’t seem to find it anymore
    n
    g
    +4
    • 7
    • 13
  • b

    bequis

    07/11/2017, 2:35 PM
    @nilan paste the HackerNews link here pls 🙂
    n
    • 2
    • 2
  • t

    tomaash

    07/11/2017, 2:41 PM
    That is a badass tutorial. It provides the same conclusion that I came to - it's almost impossible to easily build a GraphQL server withould GraphCool 😉 I'd be writing Resolvers day and night otherwise. Or use the only reasonable opensource integrated solution I found (https://github.com/postgraphql/postgraphql) which works only with Postgres, and good luck when I hit the whatever limitations it might have..
    👍 1
  • f

    fedebozo

    07/11/2017, 2:49 PM
    @nilan this is great to share with the co-workers and explain better the advantages! KUDOS and Thank you!
  • f

    frankspin

    07/11/2017, 3:09 PM
    Hi there!
    n
    • 2
    • 1
  • d

    domthegrom

    07/11/2017, 3:41 PM
    Interested in hearing opinions on Relay vs Apollo.
    d
    s
    r
    • 4
    • 4
  • u

    12brols

    07/11/2017, 3:45 PM
    anyone has a quick hint how to use updateOrCreate… mutation?
    s
    d
    d
    • 4
    • 16
  • j

    johhansantana

    07/11/2017, 4:26 PM
    hey guys, is there a way to view my graph.cool metrics, like how many request I have done in the month, etc?
    n
    • 2
    • 2
  • l

    lewisblackwood

    07/11/2017, 5:05 PM
    hey team 👋 is there a way to apply a similar permission query across multiple types? Our permission logic is largely the same across types (e.g. the user must exist for the organisation that owns this resource). If I wanted to make a change, do I need to change it for each type across all operations from the web UI?
    n
    • 2
    • 2
  • n

    nilan

    07/11/2017, 5:59 PM
    Hey everyone <!here|@here> 👋 today, we launched the biggest learning resource on GraphQL - How to GraphQL - and it's now listed on Hacker News 🎉 Please help us spread the word by upvoting and commenting 🙏 You can find the post here (search for How to GraphQL): https://news.ycombinator.com/newest
    💯 13
    👏 6
    💪 5
    💚 5
    👍 8
    graphcool 7
    graphql 4
    j
    m
    +4
    • 7
    • 19
  • c

    carlc

    07/11/2017, 6:16 PM
    hey team, i'm running the relay modern tutorial and can't seem to access relay-compiler
    n
    • 2
    • 16
  • l

    lewisblackwood

    07/11/2017, 6:35 PM
    one more question this eve 😅 is this the set-up you guys require for authentication over WebSockets with Apollo? http://dev.apollodata.com/react/subscriptions.html#authentication. I'm passing the user's JWT as so:
    Copy code
    connectionParams: {
      authToken: JWT,
    }
    and can see that the
    SubscriptionClient
    is being initialised with the JWT. However, I'm seeing
    message: "Insufficient Permissions"
    when the subscription is triggered. I'm just using
    Authentication required
    as the rule right now, without a permission query.
    n
    • 2
    • 7
  • f

    frankspin

    07/11/2017, 9:19 PM
    Hi Guys. Trying some thing out with apollo, subscriptions and vuejs. Everything is working fine, only i'm not sure how to use orderBy filter in combination with subscriptions. The new items added are ignoring the orderby filter *drops in some code *
    Copy code
    <script>
    import gql from 'graphql-tag';
    
    // GraphQL query
    const ClientQuery = gql`
      query allClients {
        allClients(orderBy: createdAt_DESC) {
          id,
          name
        }
      }`;
    
    export default {
      data() {
        return {
          msg: 'Welcome  2 to Your Vue.js App',
          loading: 0,
          allClients: {},
        };
      },
      // Apollo GraphQL
      apollo: {
        allClients() {
          return {
            query: ClientQuery,
            loadingKey: 'loading',
          };
        },
      },
      mounted() {
        // Query runs to start the subscription
        const subQuery = gql`
          subscription {
            Client(filter: {
              mutation_in: [CREATED]
            }) {
              node {
                id,
                name
              }
            }
          }`;
        this.clientsSubscription = this.$apollo.queries.allClients.subscribeToMore({
          document: subQuery,
          // Mutate the previous result
          updateQuery: (previousResult, { subscriptionData }) => ({
            allClients: [
              ...previousResult.allClients,
              // Add the new tag
              subscriptionData.data.Client.node,
            ],
          }),
        });
      },
    };
    </script>
  • m

    mentallyretired

    07/11/2017, 9:42 PM
    best practice for backing up my data?
    n
    • 2
    • 1
  • m

    mentallyretired

    07/11/2017, 9:42 PM
    can I give you guys money for that
  • m

    mentallyretired

    07/11/2017, 9:42 PM
    lol
  • m

    mentallyretired

    07/11/2017, 9:43 PM
    4x daily increment with a fade-out TTL? after 24 hours it only keeps 1 copy per day, after 7 days it only keeps 1 copy per week, totally dead in 30 days
  • a

    adrianocola

    07/11/2017, 9:45 PM
    I’m getting the error
    Directive 'include' may not be used on fragment definition
    when creating a new
    request pipeline
    function in the console
    n
    • 2
    • 7
  • s

    stton

    07/11/2017, 10:10 PM
    hey guys, every so often im getting a websocket closed before connection established... can't replicate consistently but at times using the system Ill see the subs stop working and get this
    n
    • 2
    • 1
  • s

    stton

    07/11/2017, 10:11 PM
    any ideas
  • s

    stton

    07/11/2017, 10:15 PM
    @nilan no auth
  • s

    stton

    07/11/2017, 10:15 PM
    just doing a test runthrough so leavin ti all open in case thats misconfigured
  • a

    auser

    07/11/2017, 10:45 PM
    Hey all, I suppose this is more a graphql question, but… if I am sending multiple mutations in a request, can I use the response variables in the second mutation generated by the first?
  • p

    phil

    07/11/2017, 11:16 PM
    @auser try taking a look at the connected mutations. I’m assuming this is something like you have a related type that you want created at the same time as the first type, and need the ID for that? You can pass in the values of the related type within the mutation args, and graph.cool will create the related object as well.
  • a

    auser

    07/11/2017, 11:17 PM
    I did it independently in JS for the time being — thanks @phil — I’ll check that out
  • j

    johhansantana

    07/11/2017, 11:44 PM
    hello everyone, how can I send the authorization token in the graphql query?
    i
    • 2
    • 3
1...264265266...637Latest