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

    kmandrup

    06/15/2017, 10:15 AM
    Finally looking good: https://github.com/tecla5/easy-graphql-auth
    💪🏻 2
    a
    • 2
    • 2
  • k

    kmandrup

    06/15/2017, 10:16 AM
    @aabreu, try out my auth lib - should make it much simpler...
  • a

    agartha

    06/15/2017, 10:27 AM
    I am working on permission queries, and I am trying to check all existing records for a certain condition (only allow create on a new Task if all existing Tasks are completed). I can't seem to be able to rewrite that using SomeXYZExists. I have children_every to check something on ALL children, but not on ALL items. Is that possible somehow, or can it be rewritten in a way to get the same effect?
    d
    n
    • 3
    • 22
  • y

    yolen

    06/15/2017, 2:11 PM
    Dear all. Anyone with experience the algolia integration? In order to get relevant search results data should be denormalized. This is however not really possible with graphql out of the box ? Lets say I have a book containing parts that contains sections which contain subsections which contain subsections that again contain paragraphs that contain lines (Just a thought example. i have not split my data into lines). In order to get goood search results with Lucene you should denormalize the data into reasonable chunks. Lets say that a reasonable chunk is a subsection. In that case I need to concatenate the strings in all corresponding paragraphs and lines. This, however, is to my knowledge not possible out of the box with graphql? Can you help ?
  • m

    martin

    06/15/2017, 2:49 PM
    With authentication on the way (ETA?), does it make sense to implement a custom process (such as this one: https://github.com/graphcool/feature-requests/issues/39#issuecomment-308641399), or should we wait for the full authentication to be released?
    d
    t
    a
    • 4
    • 62
  • k

    kmandrup

    06/15/2017, 4:17 PM
    @martin authentication on the way!?
    d
    • 2
    • 1
  • j

    joao.santos

    06/15/2017, 5:23 PM
    Hi guys, i want to make a feature of opened recent, anyone knows how i do that in a graphql schema? thx
    a
    d
    n
    • 4
    • 81
  • d

    dk0r

    06/15/2017, 5:43 PM
    @nilan Should we expect a fix on the pokedex-react-native-vanilla repo? https://github.com/learnapollo/pokedex-react-native-vanilla/issues/2
    n
    • 2
    • 94
  • n

    nilan

    06/15/2017, 7:25 PM
    @nilan pinned a message to this channel.
  • m

    mclovin

    06/15/2017, 7:35 PM
    Is it possible to append a json object to a field of type: [Json]?
    a
    a
    • 3
    • 8
  • a

    aurnik

    06/15/2017, 7:48 PM
    Also does anyone know if there’s a way to use the Request Pipeline to change a mutation type? The lack of upsert is really holding us back so I was wondering if anyone had any luck using functions to change a Create mutation into a Update mutation based on some parameters
    a
    • 2
    • 3
  • m

    martin

    06/15/2017, 8:52 PM
    Anyone have experience with uploading image files, then cropping and saving cropped image file (usually base64 encoded) back into GraphQL? What I have so far: https://gist.github.com/heymartinadams/d082a1bda3e40c663140649ac999f646#file-base64-image-then-upload-to-graphcool-js
    a
    g
    • 3
    • 7
  • y

    yus

    06/15/2017, 10:41 PM
    Finally, write your graphcool functions in es6! https://github.com/yusinto/functions/tree/master/stripe-create-customer
    👍🏽 1
  • y

    yus

    06/15/2017, 10:41 PM
    complete with async await and unit tests in jest
    a
    • 2
    • 5
  • y

    yus

    06/15/2017, 10:41 PM
    the pr is pending review by @nilan
  • m

    martin

    06/15/2017, 11:20 PM
    Any way to secretly include secret environment variables in graphcool server-side subscription functions? Or can they just be pasted in?
    a
    c
    n
    • 4
    • 12
  • q

    qsys

    06/15/2017, 11:41 PM
    Just wondering: graph.cool seems to integrate well with auth0. Well, it seems so... I can't find how to check JWT fields to authorize people (database-wide, or 'type'-specific). Is there an 'auth0-JWT authorization' possibility? (It doesn't really make sense to me to add user management to graph.cool, if auth0 already takes care of it.)
    a
    • 2
    • 12
  • m

    martin

    06/16/2017, 1:40 AM
    Is it possible to link two nodes together directly, like two
    users
    that are connected in a social network? Or would that have to occur via a secondary data table?
    n
    • 2
    • 4
  • p

    pbassut

    06/16/2017, 1:47 AM
    Does anyone know why relay sometimes doesn't return the
    token
    from
    signinUser
    mutation?
  • c

    ccannell

    06/16/2017, 1:57 AM
    I have a question about serverless-plugin-typescript and packaging of node modules. Is it possible to remove all npm dev dependencies after the typescript is transpiled so they don't end up in the serverless package?
  • c

    ckelley

    06/16/2017, 3:33 AM
    Hello community + team, seeking some advice on how to design a schema for a pretty specific use case: I have a 1:N relationship between a
    Person
    type and a
    Reminder
    type, where a Reminder has a
    notifyDate: DateTime!
    field. I want to sort the
    Person
    type in order of the oldest notifyDate that they have as a reminder, so that the people with the "most expired" reminders are at the top. Currently my solution is to have a field on the person with a DateTime that re-stores the oldest reminder's
    notifyDate
    , and every time I run a create or update on a Reminder I re-calculate it. Unfortunately, on Graphcool this requires that I add another round-trip query. Any ideas on a better way to structure?
    n
    • 2
    • 3
  • c

    ckelley

    06/16/2017, 3:47 AM
    One workaround... https://github.com/graphcool/feature-requests/issues/95 🙂
  • v

    visualbbasic

    06/16/2017, 5:55 AM
    Hey guys
  • v

    visualbbasic

    06/16/2017, 5:56 AM
    Copy code
    import Relay from 'react-relay'
    
    export default class UpdatePokemonMutation extends Relay.Mutation {
      getMutation () {
        return Relay.QL`mutation{updatePokemon}`
      }
      getFatQuery () {
        return Relay.QL`
        fragment on UpdatePokemonPayload {
          pokemon
          edge
          viewer {
            allPokemons
          }
        }
        `
      }
      getConfigs () {
        return [
          {
            type: 'FIELDS_CHANGE',
            fieldIDs: {
              pokemon: this.props.pokemon
            },
          },
        ]
      }
      getVariables () {
        return {
          name: this.props.name,
          url: this.props.url,
        }
      }
      getOptimisticResponse () {
      }
    }
    that's my fields_change mutation
  • v

    visualbbasic

    06/16/2017, 5:56 AM
    it doesn't throw an error
  • v

    visualbbasic

    06/16/2017, 5:56 AM
    but it doesn't update the pokemon
  • v

    visualbbasic

    06/16/2017, 5:56 AM
    do you know why?
  • v

    visualbbasic

    06/16/2017, 5:56 AM
    From network tab, I can see it's correctly passing name and url
  • v

    visualbbasic

    06/16/2017, 6:21 AM
    any idea guys?
  • v

    visualbbasic

    06/16/2017, 6:37 AM
    fixed it
    🦜 1
    n
    • 2
    • 4
1...231232233...637Latest