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

    schickling

    10/03/2016, 9:42 PM
    I'd recommend using Lokka for that
  • o

    olatom

    10/03/2016, 9:42 PM
    do u have something somewhere I could use?
  • s

    schickling

    10/03/2016, 9:46 PM
    http://vpaste.net/3GyFE
  • s

    schickling

    10/03/2016, 9:46 PM
    Hope this helps 🙂
  • s

    schickling

    10/03/2016, 9:47 PM
    See here for more: https://github.com/kadirahq/lokka
  • o

    olatom

    10/03/2016, 9:56 PM
    thks, will check it out
  • i

    iwaldman

    10/04/2016, 3:17 AM
    Just finished reading through graphql.org and have a few questions:
  • i

    iwaldman

    10/04/2016, 3:18 AM
    1) Should I use the GraphQL schema language shorthand syntax or JavaScript API to write my schema?
  • i

    iwaldman

    10/04/2016, 3:25 AM
    2) There do not seem to be complete examples on the new website - would like a complete example showing how to use the shorthand with Query and Mutation types?
  • i

    iwaldman

    10/04/2016, 3:27 AM
    One of the disadvantages I see to the shorthand syntax, for example enums, it seems you cannot specify a value or description - am I wrong?
  • s

    sashko

    10/04/2016, 5:04 AM
    @iwaldman check out this app, which is a complete example that uses the type language: https://github.com/apollostack/GitHunt-API/blob/master/api/schema.js
    👍 1
  • m

    mruzekw

    10/04/2016, 12:23 PM
    I’ve looked further into apollo as it relates to feature parity with relay, and I’m really interested. I’m currently working on a CycleJS/RxJS project and would like to integrate with it. Does anyone know of any reservations of using Apollo with RxJS or functional reactive programming?
  • m

    mruzekw

    10/04/2016, 12:24 PM
    My thoughts are a caching layer is good in almost any context. But wanted to put some feelers out there anyway
  • s

    sashko

    10/04/2016, 5:02 PM
    People use Apollo with RxJS already, there's even a wrapper package: https://github.com/kamilkisiela/apollo-client-rxjs
  • y

    yoamomonstruos

    10/04/2016, 7:18 PM
    Hey guys, completely new to graphql. Was wondering if anyone could tell me how to use orderBy with
    graphql-tag
    ?
  • y

    yoamomonstruos

    10/04/2016, 7:18 PM
    Have something like:
    Copy code
    const ClientQuery = gql`query {
      allClients(orderBy: createdAt_DESC) {
        id
        name
        color
        symbol
      }
    }`
  • y

    yoamomonstruos

    10/04/2016, 7:19 PM
    But get an error for the
    createdAt_Desc
    part...
  • n

    nilan

    10/04/2016, 7:22 PM
    what is the exact error message? I can't spot an error. You can also try out the query in our playground to verify that it works
  • y

    yoamomonstruos

    10/04/2016, 7:33 PM
    The query works in the playground
  • y

    yoamomonstruos

    10/04/2016, 7:34 PM
    ahh wait didn’t see part of the error message
  • y

    yoamomonstruos

    10/04/2016, 7:34 PM
    Copy code
    Uncaught Error: The inline argument "orderBy" of kind "EnumValue" is not supported.
                        Use variables instead of inline arguments to overcome this limitation.
  • y

    yoamomonstruos

    10/04/2016, 7:35 PM
    Although i don’t actually understand what it means exactly
  • y

    yoamomonstruos

    10/04/2016, 7:51 PM
    Ahhhh gots it. Ignore me 👌🙏
  • n

    nilan

    10/04/2016, 7:54 PM
    great! simple smile didn't know about that limitation
  • s

    sashko

    10/04/2016, 9:01 PM
    yeah we're removing the limitation in the next version
    👍 1
  • s

    sashko

    10/04/2016, 9:01 PM
    it resulted from a misunderstanding
  • s

    sashko

    10/04/2016, 9:01 PM
    the issue is here: https://github.com/apollostack/apollo-client/issues/183
  • m

    mruzekw

    10/05/2016, 5:22 AM
    Thanks, @sashko I’ll take a look at that
  • s

    sdubois

    10/05/2016, 9:52 AM
    Hi! In the dashboard I'm trying to get only `User`s which have associated `Track`s (they have a relationship through
    author
    property). Any pointers? I'm not familiar with filtering/directive systems Something like this (Relay endpoint)?
    Copy code
    {
      viewer {
        allUsers {
          edges {
            node {
              slug
              tracks(filter: ???) {
                edges {
                  node {
                    title
                  }
                }
              }
            }
          }
        }
      }
    }
  • s

    sorenbs

    10/05/2016, 10:01 AM
    Hi Sebastien! You are on the right track (heh...) specifying the filter. What you will need for this particular query is a filter on the allUsers part of the query that specifies that the tracks relation must contain at least one node. Currently you can only filter on scalar values directly on the model, but in the future we will allow you to perform filters on related nodes as well.
1...222324...637Latest