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

    mj

    07/19/2017, 12:21 PM
    I have a mutation to an existing model and want to append ids its relates to
  • m

    mj

    07/19/2017, 12:22 PM
    whats the notation for this in a mutations arguments?
    Copy code
    updateAccount($id: ID!, $userIds: [ID!]!)
    ?
    n
    • 2
    • 25
  • m

    mj

    07/19/2017, 1:08 PM
    here’s a utility script I’m using to clean tables as I test my import https://gist.github.com/export-mike/1049e09449e7a0072b3235320910159f
    💯 1
    👍 1
    n
    s
    • 3
    • 8
  • m

    mj

    07/19/2017, 1:12 PM
    https://github.com/graphcool-examples/scripts/pull/1
    💯 1
  • m

    mj

    07/19/2017, 1:12 PM
    PR
  • f

    freddie-codogo

    07/19/2017, 1:42 PM
    Hi, is it possible to create a user using Auth0 without them having to log in themselves?
    n
    • 2
    • 2
  • t

    typaza

    07/19/2017, 1:57 PM
    i have react question : what is the best method to make a restriction for all routes(i use https://github.com/react-boilerplate/react-boilerplate) ? the doc of the react-boilerplate is not clear so i used a HOC but i found it not a good solution
  • s

    senorcodecat

    07/19/2017, 1:58 PM
    Can you update a node with a unique key other than ID?
  • m

    mj

    07/19/2017, 2:00 PM
    @senorcodecat yeah I have a Int! @isUnique
  • m

    mj

    07/19/2017, 2:01 PM
    just make it unique
  • s

    senorcodecat

    07/19/2017, 2:02 PM
    Gracias!
    n
    • 2
    • 4
  • b

    bequis

    07/19/2017, 2:16 PM
    Hey everyone! What's the easiest way to interact with Graphcool server from Python?
    n
    d
    • 3
    • 22
  • b

    bequis

    07/19/2017, 2:17 PM
    Detailing: I'll be doing mutations only from Python and then Queries from React Native/Expo
  • s

    senorcodecat

    07/19/2017, 2:22 PM
    Nilan is Yoda
    👍 2
    n
    • 2
    • 2
  • r

    ryan

    07/19/2017, 2:54 PM
    Hello, everyone! Really need some help here. Am I correct to think that I can’t make the same query multiple times by different components at the same time? I seem to be getting empty data if I do it this way. I’m currently making an app with React + Apollo + GraphCool, I’m trying to make a dashboard page where it renders multiple child components that basically make the same query and outputting to different kinds of info to the users. Some components only display the the data from the query, some I’m allowing users to change time range, hence the variables of the query. I’d like such component to run the query again independently (only re-render itself instead of the whole page) when the user changes the time range, but I can’t seem to figure out a way to structure the app to achieve this without running into problem I described at the beginning. Any help is really appreciated! Thank you!
    d
    n
    • 3
    • 11
  • g

    gildas

    07/19/2017, 4:12 PM
    Hello everyone, I wanted to announce that we made a graphcool client for admin-on-rest (a backend agnostic library to build an admin with react). You can find the projects here: - Admin-on-rest: https://github.com/marmelab/admin-on-rest - GQL client with a graphcool version: https://github.com/marmelab/aor-graphql - Demo for the graphcool version: https://admin-on-rest-graphql.now.sh
    😮 1
    🚀 2
    💚 1
    🦜 4
    👌 2
    💯 2
    👏 1
    n
    c
    d
    • 4
    • 10
  • b

    bequis

    07/19/2017, 4:22 PM
    How do I make a field not mandatory? Found my answer: Instead of let's say: String!, removing the "!" makes it not mandatory
    👍 1
  • b

    bequis

    07/19/2017, 4:29 PM
    On Updating a node, do I have to update it through the ID or can I choose other field for the job? I wanted to have a 'matchId' being unique and doing the same job as the 'id' for updating...
    d
    • 2
    • 2
  • s

    senorcodecat

    07/19/2017, 4:39 PM
    Woohooo! Successfully have Zapier set up to create and update my DB in Graphcool when I update my Good Spreadsheet 🙂
    🦜 1
    d
    n
    • 3
    • 2
  • s

    senorcodecat

    07/19/2017, 4:39 PM
    Google*
  • r

    rajit

    07/19/2017, 5:13 PM
    When I'm running
    createUser
    (I have the Email Auth provider enabled) I consistently get
    Insufficient permissions
    back. This is the query:
    Copy code
    mutation createUser($data: AUTH_PROVIDER_EMAIL!) {
        createUser(authProvider: { email: $data }) {
          id
        }
      }
    And I've configured permissions only to allow authenticated users to read their own fields. Is that the issue? Do I need to loosen permissions around the
    id
    field?
    d
    n
    • 3
    • 5
  • b

    bequis

    07/19/2017, 5:57 PM
    Hello again! Having this
    type Match implement Node
    , how do I query for All the Match Data? like this: ?
    Copy code
    query allMatchs { 
         Matchs {
               ...
         }
    }
  • b

    bequis

    07/19/2017, 5:59 PM
    or is it Matches?
  • a

    agartha

    07/19/2017, 6:04 PM
    The Playground has intellisense, and the Docs tab, to help you with the naming (it's Matches)
  • a

    agartha

    07/19/2017, 6:05 PM
    the syntax would be:
    Copy code
    query {
        allMatches {
           resultfield1
           resultfield2
        }
    }
  • n

    nreid

    07/19/2017, 6:28 PM
    Hi team - quick question. Is there an elegant way to retrieve nested objects pre-indexed by a specific child field? For instance, imagine I have want to retrieve all Messages from a Topic, indexed by the author of the message. Message is associated with Topic (1 to many). Message has an author field.
  • n

    nreid

    07/19/2017, 6:29 PM
    I'm using apollo to retrieve from graphcool - do I need to write a function which fires with the results hook and do the indexing client side myself?
    n
    • 2
    • 12
  • b

    bequis

    07/19/2017, 7:05 PM
    Thank you @agartha
    😎 1
  • b

    bequis

    07/19/2017, 7:05 PM
    @nilan do you have any simple Apollo (RN) and Graphcool examples laying around?
    n
    • 2
    • 2
  • l

    leandros

    07/19/2017, 7:33 PM
    Permission_fail.erl
1...277278279...637Latest