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

    user

    04/09/2017, 12:57 PM
    @nilan commented on @dataknut’s file

    https://prisma.slack.com/files/U4PD6N1U0/F4WLX20G4/graphql.gif▾

    : I see
  • u

    user

    04/09/2017, 12:58 PM
    @nilan commented on @dataknut’s file

    https://prisma.slack.com/files/U4PD6N1U0/F4WLX20G4/graphql.gif▾

    : I'll investigate this. For now, don't set a migration value there, because it will overwrite all existing data 😛
  • u

    user

    04/09/2017, 12:58 PM
    @nilan commented on @dataknut’s file

    https://prisma.slack.com/files/U4PD6N1U0/F4WLX20G4/graphql.gif▾

    : how many data items are we talking?
  • u

    user

    04/09/2017, 12:58 PM
    @dataknut commented on @dataknut’s file

    https://prisma.slack.com/files/U4PD6N1U0/F4WLX20G4/graphql.gif▾

    : the vast number of 24
  • u

    user

    04/09/2017, 12:59 PM
    @nilan commented on @dataknut’s file

    https://prisma.slack.com/files/U4PD6N1U0/F4WLX20G4/graphql.gif▾

    : then indeed creating a 2nd required/unique column and writing a small script that converts data from one column to the other should be feasible
  • u

    user

    04/09/2017, 1:01 PM
    @dataknut commented on @dataknut’s file

    https://prisma.slack.com/files/U4PD6N1U0/F4WLX20G4/graphql.gif▾

    : That seems like a not uncommon task, do you have any pointers to how to go about that? I'm very much a beginner when it comes to graphQL syntax
  • u

    user

    04/09/2017, 1:01 PM
    @nilan commented on @dataknut’s file

    https://prisma.slack.com/files/U4PD6N1U0/F4WLX20G4/graphql.gif▾

    : And I'll have a closer look into this. We should allow you to activate the
    required
    modifier when there is no
    null
    value present.
  • u

    user

    04/09/2017, 1:01 PM
    @nilan commented on @dataknut’s file

    https://prisma.slack.com/files/U4PD6N1U0/F4WLX20G4/graphql.gif▾

    : Sure, I can help you with that. Essentially the steps are:
  • u

    user

    04/09/2017, 1:01 PM
    @nilan commented on @dataknut’s file

    https://prisma.slack.com/files/U4PD6N1U0/F4WLX20G4/graphql.gif▾

    : (let's call the columns oldColumn and newColumn)
  • u

    user

    04/09/2017, 1:02 PM
    @nilan commented on @dataknut’s file

    https://prisma.slack.com/files/U4PD6N1U0/F4WLX20G4/graphql.gif▾

    : - query all data as a list of id/oldColumn pairs - for every id/oldColumn pair, update item <id> with new value newColumn=oldColumn
  • u

    user

    04/09/2017, 1:05 PM
    @nilan commented on @dataknut’s file

    https://prisma.slack.com/files/U4PD6N1U0/F4WLX20G4/graphql.gif▾

    : https://github.com/graphcool-examples/migration-scripts/blob/master/images/migrate-images.js here's a migration script for a different use case
  • u

    user

    04/09/2017, 1:05 PM
    @dataknut commented on @dataknut’s file

    https://prisma.slack.com/files/U4PD6N1U0/F4WLX20G4/graphql.gif▾

    : great! I can work with this. tnx 🙂
  • u

    user

    04/09/2017, 1:06 PM
    @nilan commented on @dataknut’s file

    https://prisma.slack.com/files/U4PD6N1U0/F4WLX20G4/graphql.gif▾

    : awesome! maybe your final script would also be great for the repo 🙂
  • a

    artyom

    04/09/2017, 2:10 PM
    Wave @michael.sholty enjoy your Sunday with graphcool !
  • d

    danmartinez101

    04/09/2017, 2:20 PM
    From what I can tell from searching the docs / github issues / etc, advanced permissions is in beta, but I'm curious if there might be some workaround available in the meantime. Has anyone come across such a method?
    n
    • 2
    • 1
  • m

    michael.sholty

    04/09/2017, 2:27 PM
    @artyom thanks!!
  • d

    dk0r

    04/09/2017, 2:40 PM
    the youtube channel is really good! --thanks to whoever is producing/maintaining it
    👍 1
    n
    • 2
    • 3
  • d

    dk0r

    04/09/2017, 3:06 PM
    Anyone incurred trouble getting yarn to work inside docker containers? I cloned into this graphcool project (https://github.com/graphcool-examples/react-relay-instagram-example) and ran 'yarn install' which reported:

    http://i.imgur.com/G6tifZ3.png▾

    n
    • 2
    • 39
  • d

    dk0r

    04/09/2017, 3:07 PM
    however, none of the package.json's dependencies have been installed on this container
  • d

    dk0r

    04/09/2017, 3:25 PM
    user error ^ --thanks, Nilan
    🙌 2
  • a

    artyom

    04/09/2017, 3:52 PM
    whoop @mareklisy is here! welcome graphcool 👋
  • j

    jharmonious

    04/09/2017, 4:20 PM
    Hello all! I’m new to graphcool, but I’m really loving it so far. Does anyone happen to have a working example of the below apollo auth0 tutorial in vue? Thanks! https://www.graph.cool/docs/tutorials/react-apollo-auth0-pheiph4ooj/
  • m

    michael.sholty

    04/09/2017, 5:48 PM
    I have a JSON file with ~280 objects that I want to replicate in graphcool. Does anyone know of an easy way to port the JSON over? If not I can write a tool, just checking before I go do that.
    n
    • 2
    • 3
  • t

    trond

    04/09/2017, 5:55 PM
    hey everyone, I'm looking into using ReactNative+Apollo+Graphcool for a production iOS+Android mobile app, coming from the old world of Native+Parse. Thoughts? Anyone else here made the jump?
  • m

    michael.sholty

    04/09/2017, 5:58 PM
    @trond I guess it depends on your requirements. What about ReactNative+Apollo+Graphcool made you lean that way?
  • t

    trond

    04/09/2017, 6:04 PM
    RN because I think the app is suitable for cross platform development, being mostly data driven, and it seems RN has reached a maturity for such cases. Less sure about the jump to hosted GraphQL backend, but at the same time thinking why not give it a try.
  • m

    michael.sholty

    04/09/2017, 6:07 PM
    I agree about RN. I can't speak too much to graphcool as a hosted solution but I'm sure it would fit your app - the alternative is to write your own server, but there are a lot of pains with that in which you can avoid by choosing a hosted solution.
  • m

    michael.sholty

    04/09/2017, 6:07 PM
    especially for green field development
  • t

    trond

    04/09/2017, 6:12 PM
    Other option is most likely hosted Parse Server, since I'm using nodechef.com for such hosting (including the db) for another app. It's fast and works well, but I kinda want to make the jump and just think and speak graphql
  • t

    trond

    04/09/2017, 6:13 PM
    Though the Parse Server cloud code on Node is quite flexible
1...148149150...637Latest