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

    srhise

    10/05/2017, 3:11 AM
    found https://github.com/graphcool/templates
  • i

    ilija_nl

    10/05/2017, 6:23 AM
    Hello guys, i have a general question about graphql. When working in a microservice architecture, what is the best practice to keep the graphql schema and microservice entities in sync
  • f

    florian

    10/05/2017, 6:23 AM
    Hello, I don't see the option to eject in my graph.cool console, do I need to go throug some kind of process ?
  • i

    ilija_nl

    10/05/2017, 6:24 AM
    for example if i have graphql schema with User type that has some fields, and i have a microservice that implements the User with some fields, and the microservice changes the fields, how do i assure that it keeps both "schemas" in sync
  • b

    Bogs

    10/05/2017, 7:18 AM
    hello šŸ˜€ I'm a new guy here
  • f

    florian

    10/05/2017, 7:35 AM
    Hi I'm getting the following error after updating to the latest cli@beta
  • f

    florian

    10/05/2017, 7:35 AM
    when running
    graphcool deploy
    I get
    'ECONNREFUSED': request to <http://localhost:60000/system>
  • f

    florian

    10/05/2017, 7:49 AM
    I have pinpointed the issue, it seems that the .graphcoolrc file described here https://docs-next.graph.cool/reference/project-configuration/environments-zoug8seen4 is the culprit
  • f

    florian

    10/05/2017, 7:49 AM
    If I don't define any env vars it works
  • n

    notrab

    10/05/2017, 10:52 AM
    Anyone else experienced an issue similar with auth0 auth…
    Error: GraphQL error: The provided idToken is invalid. Please see <https://auth0.com/docs/tokens/id_token> for how to obtain a valid idToken
  • n

    notrab

    10/05/2017, 10:53 AM
    Forums suggest HS256 issue but this only started occuring today, seems weird.
  • t

    taikn

    10/05/2017, 11:04 AM
    Hey, I am having an issue with permission query Here’s my Profile type:
    Copy code
    type Profile @model {
      id: ID! @isUnique
      name: String!
      …
      owner: User! @relation(name: "UserOnProfile")
    }
    In graphcool.yml I have defined following permissions:
    Copy code
    permissions:
    - operation: Profile.update
      authenticated: true
      query: ./permissions/updateProfile.graphql
    Here’s the contents of my permission query:
    Copy code
    query permitProfileUpdate($node_id: ID!, $user_id: ID!) {
      SomeProfileExists(filter: {
        id: $node_id,
        owner: {
          id: $user_id
        }
      })
    }
    This is the update mutation I am trying to run:
    Copy code
    mutation UpdateProfileName($id: ID!, $name: String!) {
      updateProfile(id: $id, name: $name) {
        id
      }
    }
    And this is the error i am getting:
    "Permission Query is invalid. Could not be parsed. Error Message: Syntax error while parsing GraphQL query. Invalid input \"query ($node_id: ID, $user_id: ID) q\", expected OperationDefinition, FragmentDefinition or TypeSystemDefinition (line 1, column 1):\nquery ($node_id: ID, $user_id: ID) query permitProfileUpdate($node_id: ID!, $user_id: ID!) {\n^"
    What am i doing wrong?
    a
    n
    • 3
    • 5
  • f

    florian

    10/05/2017, 12:19 PM
    Is it possible to declare env variables at the project level
    .graphcoolrc
    that are available in functions ?
  • f

    florian

    10/05/2017, 12:20 PM
    I'm running the cli version 0.6.0-beta.3
    n
    • 2
    • 2
  • k

    kharioki

    10/05/2017, 12:21 PM
    hello, i am having an issue writing server side subscriptions
    n
    • 2
    • 1
  • b

    Ben

    10/05/2017, 3:49 PM
    Is there a way to create a project that's already ejected via the System API? I'm calling addProject without issue, and can then eject as a seperate step, but would like it done at the same time.
  • b

    Ben

    10/05/2017, 3:50 PM
    I'm aware it's an undocumented API, so completely understand if it's not possible!
    n
    • 2
    • 10
  • m

    mwickett

    10/05/2017, 5:55 PM
    Anyone have a React example of how to check for a valid graphcool token in local storage and ā€˜log in’ the user automatically?
    m
    • 2
    • 4
  • l

    lastmjs

    10/05/2017, 6:54 PM
    I just wanted to say that the new custom authentication capabilities are a dream to work with, I'm loving it
    šŸ’š 3
    m
    n
    • 3
    • 40
  • m

    matty_fresh

    10/05/2017, 6:58 PM
    n00b alert: I am going through the graphql tutorial located here (hacker news clone): https://www.howtographql.com/react-apollo/6-more-mutations-and-updating-the-store/ I am creating a mutation:
    Copy code
    mutation CreateVoteMutation($userId: ID!, $linkId: ID!) {
        createVote(userId: $userId, linkId: $linkId) {
          id
          link {
            votes {
              id
              user {
                id
              }
            }
          }
          user {
            id
          }
        }
      }
    How does graphcool know what to do with
    userId
    and
    linkId
    in this query??
  • m

    matty_fresh

    10/05/2017, 6:59 PM
    I realized a little while ago that graphcool creates functions for querying a given type (IE given a type files it automagically gives you a query
    allFiles
    )... is this something along those lines?
  • m

    matty_fresh

    10/05/2017, 7:00 PM
    We're going to be building our own custom backend more than likely, but we're also looking into potentially using graphcool for at least some part of our app
  • m

    matty_fresh

    10/05/2017, 7:01 PM
    If anyone has any insight that would be amazing!
  • m

    matty_fresh

    10/05/2017, 7:02 PM
    my guess it maps over the key names so that it knows
    $linkId
    is the
    ID
    prop on a
    Link
    object, but that is not made very plain in the tutorial
    n
    • 2
    • 2
  • m

    matty_fresh

    10/05/2017, 7:05 PM
    @taikn does your type definition for
    Profile
    need to implement the
    Node
    interface? just a wild guess. like
    type Profile implements Node
  • m

    matty_fresh

    10/05/2017, 7:29 PM
    Also I think I get it now... just a resolver on the backend that knows what to do with
    $userId
    and
    $linkId
    n
    • 2
    • 1
  • l

    lastmjs

    10/05/2017, 8:20 PM
    Is there a way to indicate an environment variable from a file in graphcool.yml?
  • l

    lastmjs

    10/05/2017, 8:21 PM
    I want to checkin graphcool.yml, but I don't want to have to hardcode environment variables in there
    a
    • 2
    • 11
  • r

    rein

    10/05/2017, 8:38 PM
    kind of a weird question perhaps but is there a shortcut, when you are creating an object that is linked to a user, to automatically make that the currentUser? I mean the id from the jwt
    a
    • 2
    • 2
  • r

    rein

    10/05/2017, 8:44 PM
    is it not possible to add make a relation required?
    a
    • 2
    • 1
1...361362363...637Latest