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

    user

    04/17/2017, 8:14 AM
    @nilan commented on @sibelius’s file

    https://prisma.slack.com/files/U4FVC3J1G/F50JK0NTZ/pasted_image_at_2017_04_17_12_12_am.png▾

    : hey @sibelius could you post the schema file that you used in PM?
  • a

    artyom

    04/17/2017, 8:26 AM
    @drwicked @asisley @moosch @sankarsyam Wave welcome into your week and happy graphcooling graphcool
  • c

    cartogram

    04/17/2017, 8:53 AM
    Hey! I am looking for a solution where users can login with any auth0 connection and have the same account in Graph.cool. I have the user accounts being merged in Auth0 if they have the same email, but when a request with the Auth0 Result's Token to my Graph.cool endpoint, the Graph.cool API doesn't recognize that there is a user that already exists and creates a new user. This leaves the previous user's account (and their data) inaccessible by that user because all subsequent logins to Auth0 return the token associated with the most recent User from Graph.cool. I am not sure if anyone else has encountered this problem. One solution would be to do some Merge User operation, but not sure if there is something easier.
    n
    • 2
    • 3
  • m

    moosch

    04/17/2017, 10:02 AM
    Hey everyone 😊
    🙌 2
  • s

    sdubois

    04/17/2017, 11:28 AM
    Hi! I just discovered the Image API mentioned in the documentation: https://www.graph.cool/docs/reference/platform/file-management-eer4wiang0/#image-api Pretty cool! graphcool Are any other image transforms supported? E.g how can I just specify the width while maintaining the aspect ratio, or how can I fit to a square or circle? Or I'm probably dreaming, but other fancy stuff like Cloudinary provides would be dope 😄
  • s

    sdubois

    04/17/2017, 11:35 AM
    Also could you confirm that such image transforms are cached, i.e. it's not costly to request them repeatedly?
  • s

    sorenbs

    04/17/2017, 12:40 PM
    Hi @sdubois The Image Api is based on this project https://github.com/graphcool/serverless-image-proxy We are using it for all our websites, but there are still corner cases that isn’t handled well. We cache resized images and the api is provided at no additional cost. Please feel free to open issues in that repository for bugs or feature requests 🙂
    👍 2
    s
    • 2
    • 2
  • a

    artyom

    04/17/2017, 12:46 PM
    @callesandstrom hi, welcome to graphcool 👋
  • s

    sdubois

    04/17/2017, 1:00 PM
    Documentation states "Files can be also uploaded and modified by using queries and mutations from the Simple API or the Relay API": https://www.graph.cool/docs/reference/platform/file-management-eer4wiang0/#file-management-with-the-client-apis But there's no information on how to achieve this. How can it be done?
    n
    • 2
    • 3
  • h

    huv1k

    04/17/2017, 1:00 PM
    Btw i made pull request https://github.com/graphcool/homepage/pull/57 you had wrong links in example application insted of appolo you had relay there
    🙇 1
  • s

    sdubois

    04/17/2017, 2:08 PM
    Am I correct that you're using
    next.js
    in e.g. your console? Or just
    styled-jsx
    ?
  • a

    artyom

    04/17/2017, 2:14 PM
    @apoeco @cthom1234 @andiradulescu 🎉 glad to have you here! graphcool 🚀
  • u

    user

    04/17/2017, 2:14 PM
    @sibelius commented on @sibelius’s file

    https://prisma.slack.com/files/U4FVC3J1G/F50JK0NTZ/pasted_image_at_2017_04_17_12_12_am.png▾

    : the schema is here: https://github.com/entria/graphql-dataloader-boilerplate
  • u

    user

    04/17/2017, 2:15 PM
    @sibelius commented on @sibelius’s file

    https://prisma.slack.com/files/U4FVC3J1G/F50JK0NTZ/pasted_image_at_2017_04_17_12_12_am.png▾

    : I've also created an issue here: https://github.com/graphcool/graphql-up/issues/5
  • a

    apoeco

    04/17/2017, 2:37 PM
    hello everyone ! @artyom glad i got here!! 🙂
    a
    n
    • 3
    • 15
  • s

    sdubois

    04/17/2017, 2:42 PM
    I got an internal server error while uploading a video, to whom shall I send the details?
    n
    • 2
    • 2
  • a

    artyom

    04/17/2017, 3:09 PM
    👋 @ttsu hi there!
  • a

    apoeco

    04/17/2017, 3:13 PM
    So Im trying things out in the playground (pretty newbie here 😉 )… Is this valid
    Copy code
    subscription something {
      Post(filter: {
        mutation_in: [CREATED, UPDATED, DELETED]
      }) {
        mutation
        updatedFields
        node {
          id
          imageUrl
          description
        }
      }
    }
    ?
    n
    • 2
    • 6
  • a

    apoeco

    04/17/2017, 3:17 PM
    I have to say this btw… Pretty helpful community you got already here… Congrats on that…
    graphcool 3
    🎉 1
    ❤️ 2
  • d

    drwicked

    04/17/2017, 3:36 PM
    I have a wishlist app, User
    has many
    wishes, I want to be able to get the user's data (name, id) when I'm listing all the wishes in the db. How do I go about this? Do I need to set up two relationships or is it bidirectional by default? I'm using react-apollo. Here's the query I've tried but it returns user as
    null
    Copy code
    const FeedQuery = gql`query FeedQuery {
      allWishes(orderBy: createdAt_DESC) {
        id
        title
        postType
        createdAt
        imageUrl
        description
        user {
          id
          username
        }
      }
    }`
  • u

    2tothe8th

    04/17/2017, 6:25 PM
    Is there a way to tell graphcool to index one or more fields?
    👍 1
    n
    • 2
    • 2
  • b

    barzev

    04/17/2017, 6:33 PM
    Hey guys, if I want to use Apollo + Redux + RN, Is this how I need to wrap my code
  • b

    barzev

    04/17/2017, 6:33 PM
    Copy code
    <ApolloProvider>
        <Provider store={store}>
            <AppNavigator />
        </Provider>
    </ApolloProvider>
  • t

    theom

    04/17/2017, 6:38 PM
    Copy code
    <ApolloProvider store={store} client={client}>
     
      </ApolloProvider>
  • b

    barzev

    04/17/2017, 6:41 PM
    so
    ApolloProvider
    can be used to supply the redux store too? 🙂
  • n

    nilan

    04/17/2017, 6:42 PM
    @theom I think answering a thread without the checkbox for "post in general" works better 🙂 thanks for chiming into the conversation! 👍
  • a

    artyom

    04/17/2017, 6:57 PM
    @gr3g @chris.geirman hello and welcome to our slack 🙌 graphcool
  • m

    monkeybonkey

    04/17/2017, 8:52 PM
    how do I duplicate/copy a project - or import the exported the schema
    v
    s
    • 3
    • 2
  • s

    sorenbs

    04/17/2017, 9:25 PM
  • b

    barzev

    04/17/2017, 10:16 PM
    when I'm creating a new node, is it possible to supply my own id - generated via uuid v4?
1...156157158...637Latest