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

    Javier Diaz

    12/11/2017, 1:32 AM
    Hi guys!
  • g

    Gregor

    12/11/2017, 1:39 AM
    šŸ‘‹ I try to get GraphQL syntax highlighting / linting / autocomplete in JavaScript files, using Atom. Do you know if that is possible somehow?
  • g

    Gregor

    12/11/2017, 1:39 AM
    I got it working in .graphql files
  • g

    Gregor

    12/11/2017, 2:05 AM
    it does work with when I do
    Copy code
    gql`{...}`
    I wonder if there is a way without using
    graphql-tag
    though?
    i
    • 2
    • 3
  • m

    matar15

    12/11/2017, 6:05 AM
    Docs are not working. https://www.graph.cool/docs/quickstart/
  • m

    matar15

    12/11/2017, 6:06 AM
  • p

    phil

    12/11/2017, 8:17 AM
    What happened to the
    createdAt
    and
    updatedAt
    default fields? Is there a different directive than
    @model
    that has those (with corresponding date creation/update behaviors)?
    a
    • 2
    • 6
  • j

    jovantoskic

    12/11/2017, 9:05 AM
    Hello everyone, thanks for having me here šŸ™‚ ,i need a little help, i’m trying to connect GraphQl with remote server, I have graphql in my app installed and on the remote server to, using just plain JS… I have this code on my server.js file, any help would be appreciated.
    -.txt
  • o

    Oleg Galaburda

    12/11/2017, 9:43 AM
    Hello! Have anyone tried File.create hook, is it working?
  • o

    Oleg Galaburda

    12/11/2017, 9:43 AM
    I cannot make it working even with console.log, file seems uploaded fine but I never see logs for operationAfter hook
  • a

    Alina

    12/11/2017, 10:15 AM
    Hi everyone! I just started using GraphQL today and I am having a hard time wrapping my head around it
  • a

    Alina

    12/11/2017, 10:16 AM
    is there any easy, beginner level introductory section for Angular+Apollo implementation?
  • a

    Alina

    12/11/2017, 10:16 AM
    I have tried GraphQL's main website and Apollo as well, but frankly, it's a bit hard for me
    n
    • 2
    • 3
  • l

    Lotafak

    12/11/2017, 12:10 PM
    Hey. is it possible to, in permission grapcool.yml section, restrict access to graphcool functions?
  • z

    Zyad Sherif

    12/11/2017, 12:53 PM
    Can I use the facebook model template from the web console?
  • e

    ed

    12/11/2017, 1:09 PM
    Hi @nilan I was wondering about the token we get when we use custom
    login/pass
    of graphcool
  • e

    ed

    12/11/2017, 1:09 PM
    how can we sign out and invalidate the token generated by graphcool?
  • p

    patrick

    12/11/2017, 2:27 PM
    Is there a cleaner way of writing this? (ie. avoiding the two relations in Location)
    -.txt
  • t

    terrence

    12/11/2017, 3:52 PM
    Hi, does anyone have an example of how to authenticate with github? similar to the FB example? https://github.com/graphcool-examples/react-graphql/tree/master/authentication-with-facebook-and-apollo
  • a

    agartha

    12/11/2017, 3:53 PM
    Did you see https://github.com/graphcool/templates/tree/master/auth/github?
    t
    • 2
    • 1
  • l

    Lotafak

    12/11/2017, 3:53 PM
    Another question. With
    Copy code
    type User @model { ... }
    we get allUsers built-in method. Now, when I’m trying to restrict the access to read on this type I made
    Copy code
    permissions: 
      - operation: User.read
        authenticated: true
        query: url
    and in linked file for query field
    Copy code
    query ($user_id: ID!) {
      SomeUserExists(filter: {id: $user_id})
    }
    but when any user is logged in I have access to all of the users. How can I rewrite it to achieve that logged in user can see only his data even if quering allUsers?
    a
    • 2
    • 12
  • e

    ehodges

    12/11/2017, 5:20 PM
    I have a syntax error I can’t figure out here: https://github.com/erichodges/react-gql-tutorial/blob/master/hackernews-react-apollo/src/components/Header.js I’m working on this tutorial: https://www.howtographql.com/react-apollo/5-authentication/ ./src/components/Header.js Syntax error: Adjacent JSX elements must be wrapped in an enclosing tag (17:10) 15 | {userId && 16 | <div className=ā€˜ml1’>|</div>
    17 | <Link to=ā€˜/create’ className=ā€˜ml1 no-underline black’>submit</Link>
    | ^ 18 | </div> 19 | } 20 | </div>
    i
    • 2
    • 21
  • j

    johhansantana

    12/11/2017, 5:38 PM
    Is there a reason when I try to deploy graphcool locally I get this error?
  • d

    Dukuo

    12/11/2017, 5:48 PM
    can you pass multiple permission queries to a model ? Like this:
    >>- permissions
    - operation: Model.operation authenticated: true query: - ./src/common/permissions.graphql:IsSomeUserRole - ./src/model/permissions.graphql:SomethingSpecificToThisModel
    āž• 1
    šŸ¤” 1
  • d

    Dukuo

    12/11/2017, 5:57 PM
    in order to avoid repetition of role queries and such
  • u

    user

    12/11/2017, 6:55 PM
    @iamclaytonray commented on @johhansantana’s file

    https://prisma.slack.com/files/U66MTT41M/F8CBVQKEV/image.pngā–¾

    : Yep. It’s letting you know that you have errors that need to be fixed before you can deploy
  • u

    user

    12/11/2017, 6:56 PM
    @iamclaytonray commented on @johhansantana’s file

    https://prisma.slack.com/files/U66MTT41M/F8CBVQKEV/image.pngā–¾

    : Fix the errors and try again
  • u

    user

    12/11/2017, 6:56 PM
    @johhansantana commented on @johhansantana’s file

    https://prisma.slack.com/files/U66MTT41M/F8CBVQKEV/image.pngā–¾

    : it works perfect on graph.cool though :l šŸ¤”
  • p

    Pedro Jardim

    12/11/2017, 6:59 PM
    HI guys, there is a way to user async/await aat the graphcool functions? Or I have to resolve everything with Promises?
    i
    r
    • 3
    • 10
  • m

    mattbryanswan

    12/11/2017, 7:40 PM
    So, I was able to successfully extend the auth/email-password template to include a string firstName and string lastName, but now I'm trying to include a userTypeId... this had worked previously, but I can't get it to line up anymore. Anyone have experience with adding relations to the auth/email-passwords template?
    • 1
    • 1
1...465466467...637Latest