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

    mj

    08/05/2017, 8:39 AM
    whats the best way to execute a two mutations sequentially?
    n
    • 2
    • 1
  • m

    mj

    08/05/2017, 8:39 AM
    register => login ?
  • i

    ilija_nl

    08/05/2017, 8:53 AM
    Hello i got a question about the performance of the database queries. I assume the graphcool service is build on amazon aws (with dynamoDB) which is not that performant on relational queries, am I right?
    a
    • 2
    • 1
  • r

    rein

    08/05/2017, 9:27 AM
    hi guys, I've just started exploring graphcool and so far it has been a great experience. However, I was wondering if there were any updates on oauth authentication that does not require auth0. Like facebook sign in etc
    🌟 1
    a
    • 2
    • 2
  • m

    mj

    08/05/2017, 9:40 AM
    Whats the easiest way to get the current logged in user in a query?
    a
    • 2
    • 2
  • e

    edgrr0

    08/05/2017, 11:08 AM
    Is there any support for transaction between Graphcool and Firebase? I'm using firebase for User auth and messaging, and GraphCool for everything else
    👍 1
    n
    • 2
    • 1
  • j

    jensandersson

    08/05/2017, 12:45 PM
    Is there a way to check if an object exists (by unique key) before creating it, in the same mutation/query?
    n
    • 2
    • 2
  • s

    sebd

    08/05/2017, 2:20 PM
    Is there a way to subscribe to a particular node? It doesn't seem to be documented in the docs...
    a
    n
    n
    • 4
    • 28
  • d

    dk0r

    08/05/2017, 3:17 PM
    Trying to decide upon a date/time format (e.g. unix or JS Date?) and manipulation library (e.g. Moment, date-fns or some other). May use graph.cool or may roll my own using aws/dynamodb. Any other suggestions? Uncertain if certain databases have their own date types that allow advanced queries.
    s
    • 2
    • 1
  • s

    spences10

    08/05/2017, 4:15 PM
    Can someone tell me how to create a graphcool project from a schema.graphql?
  • s

    spences10

    08/05/2017, 4:16 PM
    I'm picking through the schema but getting error after error trying at add things in with
    graphcool push project.graphcool --force
  • s

    spences10

    08/05/2017, 4:16 PM
    Trying to add
    Copy code
    type FileSubscriptionPayload {
      mutation: _ModelMutationType!
      node: File
      updatedFields: [String!]
      previousValues: FilePreviousValues
    }
  • s

    spences10

    08/05/2017, 4:17 PM
    Get following error:
    Copy code
    λ graphcool push project.graphcool --force
    There are issues with the new schema:
    
      × The field `mutation` has the type `_ModelMutationType!` but there's no type or enum declaration with that name.
      × The relation field `mutation` must specify a `@relation` directive: `@relation(name: "MyRelation")`
      × The relation field `node` must specify a `@relation` directive: `@relation(name: "MyRelation")`
      × The relation field `previousValues` must specify a `@relation` directive: `@relation(name: "MyRelation")`
  • s

    spences10

    08/05/2017, 4:17 PM
    Ok, let's go to the console and add the enum there? Sounds like a logical thing to do
  • s

    spences10

    08/05/2017, 4:18 PM
    Errors : '_ModelMutationType' is not a valid name.
  • s

    spences10

    08/05/2017, 4:18 PM
    🙃
    n
    • 2
    • 1
  • n

    notrab

    08/05/2017, 6:32 PM
    Can’t seemto add a function this evening
    n
    • 2
    • 1
  • n

    notrab

    08/05/2017, 6:32 PM
    Copy code
    Request ID: cj5zmzeieai1r0104d4xys17n
  • w

    webcreation-bzh

    08/05/2017, 7:23 PM
    Hi everyone, sorry for my English, I discovered graphql 2 days ago and I'm very exited to learn more. I'm working an web app using react, apollo and graphcool. It seems to be powerfull!
    👋 6
  • w

    webcreation-bzh

    08/05/2017, 7:31 PM
    I was working with react, redux, axios, node and mysql but now if I well understood I just need to focus on react and don't need anymore redux, axios, node. Can you confirm that redux is no longer useful?
    n
    • 2
    • 1
  • e

    eleazar

    08/05/2017, 7:49 PM
    hello guys, i’m new to GraphQL and Apollo in general, trying to figure this out. I think its something fundamental that i must have missed out in the docs. Omitting the
    $locations
    , it will create as per instructed. Hoping someone can point me in the right direction.
    Nested_Mutations.js
  • u

    user

    08/05/2017, 8:32 PM
    @sebd commented on @eleazar’s file https://prisma.slack.com/files/U6J5FTNHY/F6J1W3QDN/Nested_Mutations.js: shouldn't there be a '!' in [Location!] ?
    Nested_Mutations.js
  • u

    user

    08/05/2017, 8:32 PM
    @sebd commented on @eleazar’s file https://prisma.slack.com/files/U6J5FTNHY/F6J1W3QDN/Nested_Mutations.js: and also in your variables you're specifying 'location' singular but it should be plural based on your code above
    Nested_Mutations.js
  • p

    pcooney10

    08/05/2017, 9:53 PM
    @eleazar maybe something like $locationsIds: [ID!]
  • c

    cartogram

    08/06/2017, 12:03 AM
    Has anyone used GC functions to both react to an event (send an email) AND transform data (set an
    emailSent
    field to true)?
  • c

    cartogram

    08/06/2017, 12:08 AM
    Wondering how best to structure this. Either putting everything into a response pipeline, or in a subscription that performs a request to the GC (to modify the
    emailSent
    field in the sendgrid callback).
  • m

    matty

    08/06/2017, 1:01 AM
    hey guys, how do you all handle type safety with graphcool? e.g. making sure your queries and mutations wrapping your components matches your graphcool endpoint schema
  • c

    cartogram

    08/06/2017, 5:11 AM
    ignore my question, the stripe customer charge example answered it 👍
  • u

    user

    08/06/2017, 5:39 AM
    @eleazar commented on @eleazar’s file https://prisma.slack.com/files/U6J5FTNHY/F6J1W3QDN/Nested_Mutations.js: @sebd I added the ‘!’ in and changed to plural. The same error appears.
    Copy code
    { Error: GraphQL error: Variable '$locations' cannot be non input type '[Location!]'. (line 1, column 107):
    mutation ($name: String!, $desc: String, $email: String, $website: String, $imageUrl: String, $locations: [Location!]) {
                                                                                                              ^
    Nested_Mutations.js
  • u

    user

    08/06/2017, 5:43 AM
    @eleazar commented on @eleazar’s file https://prisma.slack.com/files/U6J5FTNHY/F6J1W3QDN/Nested_Mutations.js: @pcooney10 I was trying to follow this guy’s method https://hackernoon.com/graphql-nested-mutations-with-apollo-small-fatigue-max-gain-1020f627ea2e cant seem to proceed with nested mutations.
    Nested_Mutations.js
1...299300301...637Latest