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

    mikeroelens

    02/14/2017, 7:29 PM
    Does graphcool support union types?
    n
    • 2
    • 4
  • m

    mulyoved

    02/14/2017, 8:55 PM
    experience same unexpected latancy in getting query results, answer is only 1.1KB and take 3.3sec it is not my local network issue as 129KB image downloaded in 308ms this is the query
    Copy code
    const DishQuery = gql`query Dish($id:ID) { 
      Dish(id: $id) {
        id
        duration
        iconid
        searchTags
        visibility
        dishSteps {
          id
          duration
          iconid
          EN: dishStepTranslations(filter:{language:EN}) {
            description
          }
          HE: dishStepTranslations(filter:{language:HE}) {
            description
          }      
        }
        EN: dishTranslations(filter:{language:EN}) {
          name
          description
        }
        HE: dishTranslations(filter:{language:HE}) {
          name
          description
        }
       }
    }`;
  • m

    mulyoved

    02/14/2017, 8:55 PM
  • n

    nilan

    02/14/2017, 8:56 PM
    Hey @mulyoved can you show me the
    RequestId
    header of that request?
  • m

    mulyoved

    02/14/2017, 8:58 PM
  • n

    nilan

    02/14/2017, 8:58 PM
    can you please copy that request id here in Slack? 🙂
  • m

    mulyoved

    02/14/2017, 8:59 PM
    Request-Id:ciz607757dex50123wk7c8hwt
  • n

    nilan

    02/14/2017, 9:01 PM
    thanks 🙂 I'll look into this
  • c

    cj

    02/14/2017, 10:33 PM
    afternoon. Is it possible to set fine grain permissions like firebase? https://gist.github.com/ddc7d41a91e92b85025269cf28b5e7eb
  • c

    cj

    02/14/2017, 10:34 PM
    for instance in your permissions tab, it only gives the option to view data for
    everyone
    or
    authenticated
    , there is no way to say they can read it if they own the record
    n
    s
    • 3
    • 4
  • n

    nilan

    02/14/2017, 10:35 PM
    thanks @mulyoved we identified the issue. @mikeroelens ,I think you experienced the and issue lately. We will deploy a fix soon that should make sure that you are experiencing the expected performance simple smile
    👍 1
  • m

    mikeroelens

    02/14/2017, 10:40 PM
    oh awesome! glad i'm not crazy 🙂
  • r

    riley

    02/15/2017, 1:57 AM
    is there a way to allow authenticated user only to view models that they own through a relation? eg: i have User, Post and UsersPosts and i want getAllPosts to only return the posts that they are the User for?
  • m

    mruzekw

    02/15/2017, 2:07 AM
    You could do something like:
    Copy code
    query AllUsersPost($id: String) {
      User(id: $id) {
        posts {
          title
        }
      }
    }
  • m

    mruzekw

    02/15/2017, 2:09 AM
    @riley ^
  • r

    riley

    02/15/2017, 2:27 AM
    @mruzekw that definitely works, but seems like a security problem, since the user could change that client side or just make a fresh request and get all users posts
  • m

    mruzekw

    02/15/2017, 2:31 AM
    Maybe there’s something in their beta program that’ll address your concern
  • m

    mikeroelens

    02/15/2017, 3:07 AM
    @riley i actually asked this question the other day as i had the same security concern. more granular permissions are currently in beta https://github.com/graphcool/feature-requests/issues/4
    👍 1
  • r

    riley

    02/15/2017, 3:16 AM
    thanks @mikeroelens
  • m

    mikeroelens

    02/15/2017, 3:39 AM
    np! 👍
  • p

    pkunwar

    02/15/2017, 7:21 AM
    what might the ideal way to let the user view field contents
  • p

    pkunwar

    02/15/2017, 7:22 AM
    currently i have provided all query access to every user
  • p

    pkunwar

    02/15/2017, 7:22 AM
    but i want him to view only his data if he is logged in, if not then restrict certain queries,
  • p

    pkunwar

    02/15/2017, 7:23 AM
    i know how to maintain that, but mine process won't be efficient.
  • p

    pkunwar

    02/15/2017, 7:23 AM
    Any ideas folks
  • p

    pkunwar

    02/15/2017, 7:23 AM
    ?????????????
  • a

    alex_ye

    02/15/2017, 9:54 AM
    While_doing_a_mutation_on_a_model_with_a_Float_field_I_keep_getting_the_following_error.txt
  • u

    user

    02/15/2017, 9:54 AM
    @nilan commented on @alex_ye’s file https://prisma.slack.com/files/U3WSHAM39/F45MHMX42/while_doing_a_mutation_on_a_model_with_a_float_field_i_keep_getting_the_following_error.txt: Hey Alex
    While_doing_a_mutation_on_a_model_with_a_Float_field_I_keep_getting_the_following_error.txt
  • u

    user

    02/15/2017, 9:55 AM
    @nilan commented on @alex_ye’s file https://prisma.slack.com/files/U3WSHAM39/F45MHMX42/while_doing_a_mutation_on_a_model_with_a_float_field_i_keep_getting_the_following_error.txt: can you try
    mutation CreateSlide($lessonId: ID!, $type: String, $content: Json, $position: BigDecimal) {
    instead?
    While_doing_a_mutation_on_a_model_with_a_Float_field_I_keep_getting_the_following_error.txt
  • n

    nilan

    02/15/2017, 9:57 AM
    welcome @chameleon @dannie @pacogre and @alfred 👍
1...105106107...637Latest