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

    mwickett

    07/13/2017, 4:52 PM
    Sorry, to clarify, you’re not seeing the latest purchase showing up when you go back to a view that shows all purchases?
    m
    • 2
    • 14
  • r

    rajit

    07/13/2017, 5:35 PM
    Can anyone point me to tips on adding an item to a one-to-many relation? Say you’ve got
    post
    with a one-to-many relation to
    comment
    . You want to add one comment. If I use the
    createComment
    mutation it creates the comment but doesn’t associate it with the
    post
    until I update the post as well. Is there a nifty way to do this with nested mutations?
  • r

    rajit

    07/13/2017, 5:38 PM
    If I try this, I get an error:
    Copy code
    updatePost(id: $postId, comments: [{ author: $author, content: $content }]) {
      ...
    }
    The error is
    The field 'post' on type 'Comment' is required. Performing this mutation would violate the constraint
    a
    n
    • 3
    • 10
  • j

    jony

    07/13/2017, 6:18 PM
    hi all I have a question - When using react hot loader and apollo, does saving a file suppose to re fetch data?
  • j

    jony

    07/13/2017, 6:18 PM
    Every time I edit a component it re fetches data
  • j

    jony

    07/13/2017, 6:19 PM
    so I lose state
  • j

    jony

    07/13/2017, 6:20 PM
    even if the component I edit is not handling data other component that do handle data re fetch
  • j

    jony

    07/13/2017, 6:20 PM
    been looking in google but can't find too much on it
  • c

    cj

    07/13/2017, 6:37 PM
    afternoon! anyone using auth0 to create users and having an issue with functions not being triggered and it ignoring create permissions?
    n
    • 2
    • 11
  • j

    jbaudin

    07/13/2017, 6:49 PM
    Hi such as @cj I have a question regarding auth0 and its integration in your product. How could I make the oauth an option and let my user register with his email address? I found a way to do so in the auth0 documentation however it means that I have two scenarios to manage with my React component for the sign-up and it's not that nice
  • c

    cj

    07/13/2017, 6:49 PM
    so, I just tried the soon to be deprecated mutation callbacks and it triggered just fine
  • c

    cj

    07/13/2017, 6:50 PM
    @jbaudin auth0 has that option enabled by default
  • j

    jbaudin

    07/13/2017, 6:52 PM
    When trying to sign up with email + password apollo complains about the authProvider being missing.
  • j

    jbaudin

    07/13/2017, 6:52 PM
    Is there a setting in the auth0 for enabling / disabling the feature?
  • m

    mwickett

    07/13/2017, 6:54 PM
    @jbaudin You need to send a token if you’re using auth0
  • j

    jbaudin

    07/13/2017, 6:54 PM
    Yes I know a JWT one
  • j

    jbaudin

    07/13/2017, 6:54 PM
    And a valid one
  • c

    cj

    07/13/2017, 6:54 PM
    @jbaudin you should be doing it the same way you do it for say google login
  • c

    cj

    07/13/2017, 6:54 PM
    Auth0 handles allowing people to signup/signin using email and password
  • c

    cj

    07/13/2017, 6:55 PM
    if you gist me some code, I'd be happy to take a look for you
  • j

    jbaudin

    07/13/2017, 6:55 PM
    Sure
  • j

    jbaudin

    07/13/2017, 6:56 PM
    https://gist.github.com/jackTheRipper/90fbfb1581e9fbd6121b5da7a191fa60
  • j

    jbaudin

    07/13/2017, 6:56 PM
    Here it is
  • j

    jbaudin

    07/13/2017, 6:57 PM
    I shared my gql mutation with my component
  • c

    cj

    07/13/2017, 6:58 PM
    @jbaudin first off, you don't the passwordHash, auth0 handles the username and password
  • j

    jbaudin

    07/13/2017, 6:59 PM
    Ok but if I do not specify it then it fails because the passwordHash variable is not defined.
  • c

    cj

    07/13/2017, 6:59 PM
    I don't see the auth0 lock or js lib being used
  • j

    jbaudin

    07/13/2017, 6:59 PM
    Because I don't want my user to sign up with their google account
  • j

    jbaudin

    07/13/2017, 7:00 PM
    I want them to be able to do so later on
  • c

    cj

    07/13/2017, 7:00 PM
    you don't have to with auth0, by default and the only option you start with is email and password
1...267268269...637Latest