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

    alfred

    02/15/2017, 9:57 AM
    thanks!
  • u

    user

    02/15/2017, 9:58 AM
    @alex_ye 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: @nilan hi, yes this works
    While_doing_a_mutation_on_a_model_with_a_Float_field_I_keep_getting_the_following_error.txt
  • u

    user

    02/15/2017, 9:58 AM
    @alex_ye 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: is it a bug or a feature?
    While_doing_a_mutation_on_a_model_with_a_Float_field_I_keep_getting_the_following_error.txt
  • u

    user

    02/15/2017, 9:59 AM
    @alex_ye 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: logically I would expect it to be float, as I set so in the console
    While_doing_a_mutation_on_a_model_with_a_Float_field_I_keep_getting_the_following_error.txt
  • u

    user

    02/15/2017, 10:00 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: it's actually a BigDecimal, but we call it Float in the console because that's what people are used to
    While_doing_a_mutation_on_a_model_with_a_Float_field_I_keep_getting_the_following_error.txt
  • u

    user

    02/15/2017, 10:01 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: using BigDecimal allows you way way more precision than floats. You can read more here https://www.graph.cool/docs/reference/platform/fields-teizeit5se#float
    While_doing_a_mutation_on_a_model_with_a_Float_field_I_keep_getting_the_following_error.txt
  • s

    sunrising

    02/15/2017, 4:08 PM
    when i make a query the object that i got back includes the
    __typename
    property... is there a way to have a "clean" object with the requested properties only?
    n
    • 2
    • 3
  • n

    nilan

    02/15/2017, 4:09 PM
    Welcome @michaelstrobl2, @vuldin @supereric and @jan to our Slack community 🙌 🎉
  • m

    mruzekw

    02/15/2017, 4:39 PM
    I’m trying to see if a user is logged in when loading a page. I currently use the following query with the
    idToken
    from Auth0. Though I notice there’s a mismatch between the token and what’s in the database, e.g.
    idToken=a98d7f98af798d7f98afd798af897…
    and
    auth0IdToken=facebook|0982394802398409
    Copy code
    query ($auth0Id: String!) {
      user: User(auth0UserId: $auth0Id) {
        id
        name
      }
    }
    n
    • 2
    • 21
  • m

    mikeroelens

    02/15/2017, 6:37 PM
    @nilan looks like there's a minor issue with Data Export. It downloads a file called "data.json", but it's actually a zip file. Changing the extension to .zip allows it to be successfully extracted
    n
    • 2
    • 1
  • s

    schickling

    02/15/2017, 7:44 PM
    We’re about to introduce a new mutation type to update or create a node when the filter doesn’t match existing data. Please vote for your favourite <!here|@here>: https://twitter.com/graphcool/status/831951143270023170
    🚀 1
    👍🏽 4
  • m

    mulyoved

    02/15/2017, 8:02 PM
    trying to create mutation
    Copy code
    const DishUpdate = gql`mutation updateDish($id:ID!, $duration: Number) { 
      updateDish(id: $id, duration: $duration) {
        id,
        duration: duration
      }
    }`;
    using aApollClient get error
    Error: GraphQL error: Variable '$duration' cannot be non input type 'Number'
    1 - I understand I need to define some input type, where I can see example to define input type 2 - insted of simple scallar want to pass complex data object, any known example for that?
    n
    • 2
    • 8
  • m

    mlukaszczyk

    02/15/2017, 8:44 PM
    @schickling, how about a condation ☝️bowtie ?
  • n

    nilan

    02/15/2017, 8:54 PM
    Welcome to our Slack community, @gmp26 🙌
  • g

    gollyjer

    02/15/2017, 11:07 PM
    Hey guys. I'm not sure I'm supposed to be trying this yet. https://github.com/graphcool-examples/exponent-auth0-example
  • g

    gollyjer

    02/15/2017, 11:08 PM
    I'm able to get it up and running and authenticating with Auth0. A user is created in Auth0 but a user is never created in graphcool.
    t
    n
    • 3
    • 27
  • g

    gollyjer

    02/15/2017, 11:59 PM
  • m

    mikeroelens

    02/16/2017, 4:49 AM
    Are all columns in the underlying DB indexed? If not, is there a way to or a plan to add the ability to index certain fields/columns?
    n
    • 2
    • 5
  • n

    nilan

    02/16/2017, 10:06 AM
    Hey @dzello @jaredingold @wes @ndcollins @patrick 👋 welcome all to our Slack community 🎉
    👋 2
  • n

    nilan

    02/16/2017, 10:46 AM
    Aaaand hello @mgarf and @delgermurun 🙂 you guys are very welcome to ask questions or share your opinion in our Slack community 🎉
  • a

    alex_ye

    02/16/2017, 12:32 PM
    I need to fetch the info about the "siblings" of a current slide. Not sure if going up and down is a good practice. Does this scale?
    Hi__How_does_this_query_affect_performance_.js
  • u

    user

    02/16/2017, 12:42 PM
    @nilan commented on @alex_ye’s file https://prisma.slack.com/files/U3WSHAM39/F46B1EW4A/Hi__How_does_this_query_affect_performance_.js: hm I am not sure what you mean with "currentSlide". How does the GraphQL query look like?
    Hi__How_does_this_query_affect_performance_.js
  • u

    user

    02/16/2017, 12:45 PM
    @alex_ye commented on @alex_ye’s file https://prisma.slack.com/files/U3WSHAM39/F46B1EW4A/Hi__How_does_this_query_affect_performance_.js: I updated the snippet to show the full fragment. A user has a relation which points to the slide they are currently looking at
    Hi__How_does_this_query_affect_performance_.js
  • u

    user

    02/16/2017, 12:47 PM
    @alex_ye commented on @alex_ye’s file https://prisma.slack.com/files/U3WSHAM39/F46B1EW4A/Hi__How_does_this_query_affect_performance_.js: This way, other users (students) can know, what their teacher is showing. And if a user exits the app, they can come back to the same slide later
    Hi__How_does_this_query_affect_performance_.js
  • u

    user

    02/16/2017, 12:50 PM
    @nilan commented on @alex_ye’s file https://prisma.slack.com/files/U3WSHAM39/F46B1EW4A/Hi__How_does_this_query_affect_performance_.js: Is
    Slide
    a model in your project?
    Hi__How_does_this_query_affect_performance_.js
  • u

    user

    02/16/2017, 12:50 PM
    @alex_ye commented on @alex_ye’s file https://prisma.slack.com/files/U3WSHAM39/F46B1EW4A/Hi__How_does_this_query_affect_performance_.js: Yes
    Hi__How_does_this_query_affect_performance_.js
  • u

    user

    02/16/2017, 12:50 PM
    @nilan commented on @alex_ye’s file https://prisma.slack.com/files/U3WSHAM39/F46B1EW4A/Hi__How_does_this_query_affect_performance_.js: how are "siblings" of slides defined?
    Hi__How_does_this_query_affect_performance_.js
  • u

    user

    02/16/2017, 12:51 PM
    @alex_ye commented on @alex_ye’s file https://prisma.slack.com/files/U3WSHAM39/F46B1EW4A/Hi__How_does_this_query_affect_performance_.js: User has Classrooms, Classroom has Lessons, Lesson has Slides
    Hi__How_does_this_query_affect_performance_.js
  • u

    user

    02/16/2017, 12:51 PM
    @nilan commented on @alex_ye’s file https://prisma.slack.com/files/U3WSHAM39/F46B1EW4A/Hi__How_does_this_query_affect_performance_.js: do the slides have a field to manage their order?
    Hi__How_does_this_query_affect_performance_.js
  • u

    user

    02/16/2017, 12:52 PM
    @alex_ye commented on @alex_ye’s file https://prisma.slack.com/files/U3WSHAM39/F46B1EW4A/Hi__How_does_this_query_affect_performance_.js: yes, Slide.position
    Hi__How_does_this_query_affect_performance_.js
1...106107108...637Latest