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

    zth

    01/13/2017, 9:06 PM
    and this seems like exactly what I've been looking for really
  • z

    zth

    01/13/2017, 9:06 PM
    just a simple way of not having to mess with SSR for real, since my SSR needs are pretty minor at the moment
  • z

    zth

    01/13/2017, 9:07 PM
    just static content for SEO, nothing logged in or anything
  • z

    zth

    01/13/2017, 9:07 PM
    so thanks a lot for that little nugget! 🙂
  • n

    nilan

    01/13/2017, 9:39 PM
    🎉
  • s

    schickling

    01/13/2017, 10:01 PM
    Glad you like it. :)
  • r

    rafgraph

    01/13/2017, 10:52 PM
    can I designate a field as unique for a relationship scope? For example, Portfolio -> Image is a 1 to many relationship, and an image title must unique within the its portfolio, but images in different portfolios can have the same title?
  • n

    nilan

    01/13/2017, 10:59 PM
    hey @rafgraph, that is not directly possible but you could approach this topic with mutation callbacks. Let me contact you in PM 🙂
  • m

    monkeybonkey

    01/13/2017, 11:11 PM
    how do you guys handle forgot password scenarios with the graphql email/pwd authentication
  • n

    nilan

    01/13/2017, 11:12 PM
    We want to extent our email/password authentication with a full workflow surrounding this and other topics. You can see more here: https://github.com/graphcool/feature-requests/issues/39
  • m

    monkeybonkey

    01/13/2017, 11:43 PM
    so it might take some time to implement the forgot email feature - but do you guys have a resetpassword mutation in the meantime?
  • n

    nilan

    01/14/2017, 12:28 AM
    let me get back to you about that tomorrow @monkeybonkey 🙂 Good night! 🌃
  • n

    nilan

    01/14/2017, 11:50 AM
    sent you an pm :)
  • p

    pmcgarry

    01/14/2017, 3:38 PM
    Just an FYI, the declaring relations guide at the end of the onboarding tutorial leads to a 404
  • s

    sorenbs

    01/14/2017, 3:39 PM
    Thanks Paul. We just restructured our Docs site, so that probably got lost in the transition. We’ll get it fixed asap 🙂
  • n

    nilan

    01/14/2017, 4:09 PM
    There's a pending pull request about that, should be deployed soon 😉
  • g

    gopidon

    01/14/2017, 6:24 PM
    The startup pricing has increased from $29 to $49 😳
  • s

    schickling

    01/14/2017, 6:25 PM
    Hey @gopidon! We’re soon sending out an update about this as we’re introducing our new pricing which includes a way more generous free plan and many other benefits to our customers.
  • s

    schickling

    01/14/2017, 6:25 PM
    We’ve also removed the User model restriction.
  • g

    gopidon

    01/14/2017, 6:31 PM
    Just goin thru the plans, the dev plan doesnt talk about over-quota pricing
  • s

    schickling

    01/14/2017, 6:34 PM
    Thanks for the feedback, we should include that in the FAQ. We don’t currently provide overages for the free plan. However, we won’t cut your apps off immediately once you’re hitting the limits.
  • g

    gopidon

    01/14/2017, 6:35 PM
    Also, would there be seamless migration of data between data centres once additional ones come up?
  • s

    schickling

    01/14/2017, 6:35 PM
    Yes, that’s something we’re working on.
  • g

    gopidon

    01/14/2017, 6:35 PM
    👍
  • m

    martin

    01/15/2017, 10:47 PM
    Is this the place to post code help questions? Love what you’re doing with graph.cool, btw. I’m new to GraphQL and Apollo, so please forgive my ignorance in this matter. Attempting to replicate the
    React-Apollo-Email
    authentication example, but am receiving this error: `console log`:
    Copy code
    Uncaught TypeError: Cannot read property 'kind' of undefined
        at Object.parser (parser.js:11)
        at graphql (graphql.js:67)
        at Object.<anonymous> (Register.js:73)
        at __webpack_require__ (bootstrap 165d82b…:555)
        at fn (bootstrap 165d82b…:86)
        at Object.<anonymous> (index.js:4)
        at __webpack_require__ (bootstrap 165d82b…:555)
        at fn (bootstrap 165d82b…:86)
        at Object.<anonymous> (index.js:6)
        at __webpack_require__ (bootstrap 165d82b…:555)
    In `parser.js`:
    Copy code
    function parser(document) {
        var variables, type, name;
        invariant((!!document || !!document.kind), "Argument of " + document + " passed to parser was not a valid GraphQL DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document");
    …
    Code used inside the client:
    Copy code
    import gql from 'graphql-tag'
    
    const createUser = gql`
    	mutation ($email: String!, $password: String!, $firstName: String!, $lastName: String!) {
    		createUser(authProvider: {email: {email: $email, password: $password}}, firstName: $firstName, lastName: $lastName) {
    			id
    		}
    	}
    `
    
    const signinUser = gql`
    	mutation ($email: String!, $password: String!) {
    		signinUser(email: {email: $email, password: $password}) {
    			token
    		}
    	}
    `
    
    const userQuery = gql`
    	query {
    		user {
    			id
    		}
    	}
    `
  • n

    nilan

    01/15/2017, 11:16 PM
    cheers @martin! This is the place :) thanks for your PRs by the way! this issue might stem from the fact that the code was written for Apollo 0.5. what version are you on? just to get this out of the way, have you injected your project endpoint to a project with the required schema?
  • m

    martin

    01/15/2017, 11:37 PM
    Thanks, @nilan! Using:
    apollo-client
    0.7.3
    react-apollo
    0.8.1 Have been following these instructions: https://www.graph.cool/docs/tutorials/react-apollo-email-oopheesaj9 And what do you mean by “have you injected your project endpoint to a project with the required schema?” I have included the project link both in the
    index.js
    file
    Copy code
    const networkInterface = createNetworkInterface({ uri: '…’ })
    and in
    package.json
    Copy code
    "graphql": {
        "request": {
          "url": "..."
        }
      }
  • n

    nilan

    01/15/2017, 11:42 PM
    yep that's what I meant. I will check it out tomorrow simple smile good night!
  • m

    martin

    01/15/2017, 11:42 PM
    Gute Nacht, @nilan, schlaf gut! 🙂
    😎 1
  • m

    martin

    01/16/2017, 2:58 AM
    Somehow, @nilan, I was able to fix it all! Too many hours of trial & error, though… alas 😉 Still not sure what I ended up doing 😳 The following versions now work.
    apollo-client
    0.7.3
    graphql-tag
    1.2.3
    react-apollo
    0.8.1
1...747576...637Latest