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

    amandoabreu

    08/25/2017, 2:07 PM
    I literally spent 12 hours refactoring code assuming the code was failing...
    ❤️ 1
  • d

    dno

    08/25/2017, 2:08 PM
    Yeah disabling OIDC Conformant works
  • d

    dno

    08/25/2017, 2:09 PM
    Thank you
  • a

    amandoabreu

    08/25/2017, 2:09 PM
    Glad I could help 🙂 and now to discover what OIDC Conformant means... 😄
    d
    a
    • 3
    • 2
  • m

    mike.johnson

    08/25/2017, 3:55 PM
    trying to upload an image file from remote server following along https://github.com/graphcool-examples/node-remote-file-upload
    d
    a
    • 3
    • 10
  • c

    corasan

    08/25/2017, 11:52 PM
    Hi everyone! I just started learning graphcool and graphql, and I've been using it with relay on a react native app. I'm trying to create a sign up but isn't working
  • c

    corasan

    08/25/2017, 11:52 PM
    CreateUserMutation_js.js
  • c

    corasan

    08/25/2017, 11:54 PM
    I have this mutation to create the user. Then in my signup screen, when I click the sign up button I get the error saying that CreateUserMutation is undefined
  • c

    corasan

    08/25/2017, 11:58 PM
    Signup_js.js
  • u

    user

    08/26/2017, 12:01 AM
    @shanecav commented on @corasan’s file https://prisma.slack.com/files/U6TFP0L0H/F6U5Y20S1/signup_js.js: It looks like you're importing
    CreateUserMutation
    as a named import in
    Signup.js
    , but it's a default export in
    CreateUserMutation.js
    . If you change line 3 in
    Signup.js
    to:
    import CreateUserMutation from '../../mutations/CreateUserMutation'
    does it work?
    Signup_js.js
  • a

    aurnik

    08/26/2017, 12:03 AM
    Does anyone know what the github issue is called that talks about nodes not being updated when a relational field changes? Trying to sort something by updatedAt but this date doesn’t get updated when adding relations
  • j

    jqemprendedorve

    08/26/2017, 5:39 AM
    Hi everyone
    👋 1
    n
    • 2
    • 1
  • m

    mwildehahn

    08/26/2017, 7:10 AM
    👋 I'm using graph.cool as the storage layer for a node app. After successfully creating a user (or a user logging in) i want to generate an auth token for them. I looked at the
    graphcool-lib
    library and wrote:
    Copy code
    export async function generateUserToken(userId) {
      const mutation = `mutation {
        generateUserToken(input: {
          pat: "${process.env.GRAPHQL_PAT}",
          projectId: "${process.env.GRAPHQL_PROJECT_ID}",
          userId: "${userId}",
          modelName: "User"
        }) {
          token
        }
      }`;
    but am getting this error whenever that runs:
    Copy code
    Cannot query field 'generateUserToken' on type 'Mutation'. (line 2, column 5): generateUserToken(input: { ^: {"response":{"data":null,"errors":[{"message":"Cannot query field 'generateUserToken' on type 'Mutation'. (line 2, column 5):\n generateUserToken(input: {\n ^","locations":[{"line":2,"column":5}]}],"status":200},
    d
    n
    • 3
    • 18
  • m

    matty

    08/26/2017, 7:51 AM
    anyone had issues with a server side subscription not running?
  • m

    matty

    08/26/2017, 7:52 AM
    is there a parallel invocation limit of 1?
  • m

    matty

    08/26/2017, 8:01 AM
    another server side subscription with a similar query triggered 3 times, but the one in question triggered only twice. The one that worked (3 times) has lower durations (400ms vs ~2000ms)
  • m

    matty

    08/26/2017, 8:17 AM
    Raised https://github.com/graphcool/api-bugs/issues/243
  • c

    corasan

    08/26/2017, 8:19 AM
    @shanecav omg how did I miss that! I unintentionally imported it like that, he simplest thing was causing me so much trouble lol. Thank you!!
  • p

    panzupa

    08/26/2017, 8:34 AM
    When I compile that code I get error from relay-compiler: Writing default ERROR: RelayCodeGenerator: Complex argument values (Lists or InputObjects with nested variables) are not supported, argument
    filter
    had value
    Query_with_filter.txt
  • p

    panzupa

    08/26/2017, 8:35 AM
    what can I do?
  • p

    panzupa

    08/26/2017, 8:35 AM
    the query is working fine in graph.cool console
    n
    • 2
    • 1
  • c

    corasan

    08/26/2017, 3:16 PM
    I'm trying to do authentication with email and password using relay modern. In the graphcool docs it says I have to pass the auth token to the
    Authorization
    header. After doing the
    siginUser
    mutation I get the token in the payload but how can I pass that token to the
    Authorization
    header in the relay environment?
  • n

    nilan

    08/26/2017, 4:35 PM
    Hey everyone <!here|@here>, the latest changelog comes with improvements to JSON and Enum values as well many function examples, such as Firebase & Twilio Auth as well as a wrapper for the SendCloud API. Thanks for all the contributions 💪 https://www.graph.cool/forum/t/changelog-week-32-34/737
  • e

    eraldo

    08/26/2017, 4:37 PM
    Nice work! 🙂
  • e

    eder

    08/26/2017, 4:43 PM
    Firebase ❤️ 😮
    n
    • 2
    • 1
  • d

    Daniel K.

    08/26/2017, 4:48 PM
    personally I find authentication example for Firebase too bloated, but I have no time and will right now do it better way, so I guess good job 🙂
    n
    • 2
    • 2
  • a

    ajmakhl

    08/26/2017, 7:12 PM
    is this the correct way of deleting a File?? when I do I get an internal error
    Copy code
    mutation($id: ID!) {
      deleteFile(id:$id) {
        id
      }
    }
    I did type the id in query variables
    n
    • 2
    • 9
  • c

    cj

    08/26/2017, 7:13 PM
    afternoon. how do I get access to the new schema extensions?
    n
    • 2
    • 4
  • m

    matthewhager

    08/26/2017, 8:55 PM
    @nilan say you had a model called “Order” and it has many “Items”. Each time you create a related item, you want to update the “total” value on Order to be the sum of all the items. What is the best approach to this?
    d
    a
    n
    • 4
    • 3
  • m

    matthewhager

    08/26/2017, 9:14 PM
    I’m not able to delete any PATs. Get the above error.
1...319320321...637Latest