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

    ambethia

    02/01/2017, 6:46 PM
    is the convention more
    FamiliesQuery
    or
    familiesQuery
    , I've seen both.
  • n

    nilan

    02/01/2017, 6:46 PM
    as far as I know, the name I added is the name that Apollo keeps track of queries
  • a

    ambethia

    02/01/2017, 6:46 PM
    Adding the orderBy to the mutation works
  • n

    nilan

    02/01/2017, 6:46 PM
    hah!
  • a

    ambethia

    02/01/2017, 6:47 PM
    I guess I need to figure out how to use the same fragment for both
  • n

    nilan

    02/01/2017, 6:47 PM
    have you seen https://dev-blog.apollodata.com/webpacking-your-graphql-documents-bf9697ed259b?
  • a

    ambethia

    02/01/2017, 6:48 PM
    I saw that was a thing, I'm going to look at it soon
  • n

    nilan

    02/01/2017, 6:48 PM
    Didn't try it myself yet
  • a

    ambethia

    02/01/2017, 6:49 PM
    I also saw that I can use decorators too, which i already use heavily in my app
  • a

    ambethia

    02/01/2017, 6:51 PM
    I like that synax alot more than the
    graphql(Foo)(graphql(Bar)(Component))
  • a

    ambethia

    02/01/2017, 7:41 PM
    @nilan The webpack loader worked perfectly, thanks! It's glorious: https://github.com/ambethia/kid-kredits/blob/master/src/components/FamilyList.js
  • n

    nilan

    02/01/2017, 7:42 PM
    wohoo 🎉
  • n

    nilan

    02/01/2017, 7:43 PM
    got to take a look at that as well
  • a

    ambethia

    02/01/2017, 7:43 PM
    I can't seem to think of any downsides to it
  • f

    fred

    02/01/2017, 10:49 PM
    Hey guys, is there a way to filter some nodes by a field, if that field is a List?
    n
    • 2
    • 1
  • f

    fred

    02/01/2017, 10:50 PM
    e.g.
    Copy code
    query {
      allXs(filter: { listField_contains: "list_item" }) { 
        listField
      }
    }
  • n

    nilan

    02/02/2017, 8:06 AM
    welcome @cpunion and @foda 👋
    👍 1
  • s

    sunrising

    02/02/2017, 4:37 PM
    Hi! I am wondering how can i make a query and get all the fields of a node without specifying every single one... something like
    Copy code
    const userQuery = gql`
      query {
        user {
          allData
        }
      }
    `;
    n
    • 2
    • 3
  • s

    sunrising

    02/02/2017, 4:38 PM
    and get 'id, name, email....'
  • n

    nilan

    02/02/2017, 4:40 PM
    Welcome @logmaor and @ludovicc 🙌
  • e

    ejoebstl

    02/02/2017, 5:12 PM
    Hello graphcool team! What's the proper way to get the schema for a graphcool project, when all I know is the project ID?
  • n

    nilan

    02/02/2017, 5:14 PM
    The proper way to do it is to use the introspection query that GraphiQL runs
  • n

    nilan

    02/02/2017, 5:14 PM
    I'll send you a PM
  • s

    schickling

    02/02/2017, 5:41 PM
    @ejoebstl: https://github.com/graphcool/get-graphql-schema
    😻 2
  • s

    schickling

    02/02/2017, 5:42 PM
    Copy code
    get-graphql-schema ENDPOINT_URL > schema.json
  • n

    nilan

    02/02/2017, 5:42 PM
    🎉
  • e

    ejoebstl

    02/02/2017, 6:40 PM
    Wow, that was fast. Awesome!
  • b

    bruce

    02/02/2017, 7:32 PM
    Quick question! I went through the AUTH0 example and was wondering the correct way to addToUserPosts(postsId, userId). I'm assuming I can have the client keep track of userId & wait for the returned ID for the Post, then call addToUserPosts. Is this the correct way to go about this, or is there a more preferred way.
  • n

    nilan

    02/02/2017, 8:10 PM
    hey @bruce, that's a possibility
  • n

    nilan

    02/02/2017, 8:11 PM
    another way is to directly include the
    userId
    argument when calling
    createPost
1...969798...637Latest