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

    gerardsans

    09/07/2017, 12:49 PM
    I've impl Auth0 + token + roles but using Apollo
  • g

    gerardsans

    09/07/2017, 12:49 PM
    I see
  • g

    gerardsans

    09/07/2017, 12:50 PM
    where is the token info?
  • g

    gerardsans

    09/07/2017, 12:50 PM
    for expiration time
  • g

    gerardsans

    09/07/2017, 12:52 PM
    maybe you can use fancy functions to remove expired tokens
  • g

    gerardsans

    09/07/2017, 12:52 PM
    no requests will work until a new one is issued
    a
    • 2
    • 1
  • s

    samandarr

    09/07/2017, 1:11 PM
    It is great that we are able export our projects. Well, what if we have created Graphcool Functions, how we can migrate this part ?
    d
    • 2
    • 2
  • m

    mwickett

    09/07/2017, 1:47 PM
    Anyone have any luck with something like https://github.com/marmelab/aor-graphql ? Looking at options for an ‘off the shelf’ CRUD admin dashboard that would work with graphcool
    h
    a
    n
    • 4
    • 11
  • h

    halborg

    09/07/2017, 2:00 PM
    Got a question for a SSS/Function. I want to create a new statistics-entry if the user has none yet, or update the exisiting row if he/she does. The playground lets me know there’s an “updateOrCreateWidgetData” type, but I”m unsure how it works? Any way I can look for exisiting entries in the subscription query and pass the ID along to my function?
    m
    • 2
    • 11
  • n

    notrab

    09/07/2017, 2:00 PM
    @mwickett I hope there is - I’ve spent 6 weeks building a custom CRUD interface and it’s delaying me moving onto other things ha
    m
    • 2
    • 1
  • a

    antho1404

    09/07/2017, 3:28 PM
    Hi everyone, I just have some issues with subscriptions that disconnect “randomly” if anyone have an idea I would be really grateful https://www.graph.cool/forum/t/unstable-subscriptions/851
    d
    d
    +2
    • 5
    • 6
  • f

    freddie-codogo

    09/07/2017, 3:32 PM
    I'm also experiencing some issues with subscriptions, has the server implementation been changed?
  • p

    Pieter

    09/07/2017, 5:02 PM
    I need to generate a unique number for a booking. How would I do that in graphcool and know that it will always be unique? Using the current count metadata might not go so well coz if we go and delete a booking the count will decrease
  • p

    Pieter

    09/07/2017, 5:03 PM
    Is there some method for this or should I go and store all of the numbers to assure that it is unique?
  • p

    Pieter

    09/07/2017, 5:07 PM
    I guess I should just get the latest created booking and check what the number is and increment it?
    a
    m
    n
    • 4
    • 49
  • w

    webcat91

    09/07/2017, 6:42 PM
    Guys I am building query like this.
  • w

    webcat91

    09/07/2017, 6:42 PM
    Copy code
    {
      transactions (
        filters: {
          buyer_verticals: ["Pharmaceuticals", "Media", "Automotive"],
          buyer_marketCap: {greaterThan: 299999999, lessThan: 57900000001},
          buyer_numberOfEmployees: {greaterThan: 4, lessThan: 50000}
          orderTime: {greaterThan: "2016-09-01 0:0", lessThan: "2017-09-01 0:0"}
        },
        group: ["buyer_vertical", "product_category"]
      ) {
        totalSum: func(field: "totalAmount", op: "sum"),
        product_category
      }
    }
  • w

    webcat91

    09/07/2017, 6:42 PM
    is it possible to add
    buyer_verticals
    property dynamically? (for example).
    d
    • 2
    • 6
  • w

    webcat91

    09/07/2017, 6:42 PM
    Using variable?
  • j

    jsleeuw

    09/07/2017, 7:07 PM
    try encapsulating your array variable in
    ${JSON.stringify(arr)}
  • j

    jsleeuw

    09/07/2017, 7:07 PM
    works for me with Apollo
  • m

    mentallyretired

    09/07/2017, 7:30 PM
    so... I did a batch update last night and now my console cant do anything... all 500 errors
    ✅ 1
    d
    • 2
    • 1
  • m

    mentallyretired

    09/07/2017, 7:30 PM
    I sent a support message but was curious if anyone has encountered this and if its fixable without support
  • m

    mentallyretired

    09/07/2017, 7:30 PM
    err batch insert
  • s

    spences10

    09/07/2017, 8:09 PM
    How does everyone do their data in graphql?
  • s

    spences10

    09/07/2017, 8:09 PM
    Like for SQL dbs I'd make a lookup table
  • s

    spences10

    09/07/2017, 8:09 PM
    for types of things like fruits
  • s

    spences10

    09/07/2017, 8:10 PM
    then use the id in another table is that the same with graphql?
    d
    • 2
    • 2
  • k

    karolis

    09/08/2017, 1:44 AM
    Hey there, I'm folowing tutorial @howtographql https://www.howtographql.com/react-apollo/6-more-mutations-and-updating-the-store/ and could someone explain how clicking 'Vote' button increases that vote by +1 ?
    d
    p
    • 3
    • 6
  • s

    samandarr

    09/08/2017, 7:25 AM
    Is authentication extension of Graphcool is as secure as one which by Firebase?
1...333334335...637Latest