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

    sajmil

    02/02/2018, 10:28 PM
    Is there a way to see if a user Auth token has expired or see what time it will expire?
    n
    • 2
    • 1
  • k

    KJ

    02/03/2018, 3:14 AM
    Hi guys anyone is trying the tutorial?
  • k

    KJ

    02/03/2018, 3:15 AM
    I dont know why I cant signup with github, after connect to my github the website just keep loading
    n
    j
    • 3
    • 2
  • s

    Saeris

    02/03/2018, 3:39 AM
    figuring out how to build some relationships in the SDL is a bit tricky
  • s

    Saeris

    02/03/2018, 3:44 AM
    trying to add a visibility filter to a
    Post
    type. It's simple enough to do an enum for
    Public
    ,
    Acquaintences
    ,
    Friends
    . But the tricky part is implementing a
    Custom
    filter, where I'd need a list of `User`s. Because there'd be an
    author: User!
    field on the
    Post
    already, if I had another field, say
    exclude: [User!]!
    the relationship between the two types is now ambiguous, so I need to specify a relation name. But that also requires me to set that relation name on both types. I don't want to have another field on my
    User
    type which would essentially be posts they can't see.
  • s

    Saeris

    02/03/2018, 3:52 AM
    Also, would it be correct to assume that if I wanted to have virtual fields, ie: fields I want to have available in the API but not tracked in the database as a column, ie:
    fullname
    which would be computed from
    firstname
    and
    lastname
    , that I would need to write that type in two locations? Both in
    datamodel.graphql
    and
    schema.graphql
    ? From the examples it looks like types that aren't defined in
    schema.graphql
    are automatically merged from
    prisma.graphql
    .
    a
    • 2
    • 49
  • s

    Saeris

    02/03/2018, 3:53 AM
    if that's the case, maybe a good idea would be to have a
    @virtual
    directive? That would instruct Prisma to skip creating a column for that field and just include it in the generated schema. That would prevent the need to write a type definition multiple times.
  • s

    Saeris

    02/03/2018, 3:56 AM
    join-monster
    does something similar to this in that you can specify required columns from a database to be used in the resolver for a computed field. Example here: https://join-monster.readthedocs.io/en/latest/field-metadata/
  • m

    Mr.niko.la

    02/03/2018, 6:40 AM
    hey guys I did my hello world using appollo as client and server
  • m

    Mr.niko.la

    02/03/2018, 6:41 AM
    I would like to do it with gaphcool as the server. my nodejs application just does an api call and resolves it and displays the results of thequery in the graphql ide
  • m

    Mr.niko.la

    02/03/2018, 6:41 AM
    If I use graphcool how do i save this data for long as database. I read Graphcool acts as the DB too ? is that correct?>
  • o

    oxyoxy88

    02/03/2018, 7:38 AM
    Hi. I'm going to release a react native app using prisma soon and I want to know typical case. I have a prisma database on digital ocean. My question is where will be good to deploy app not prisma Should I make another droplet for app or just deploy on existing droplet? Thank you for comments.
  • q

    qsys

    02/03/2018, 9:44 AM
    Just wondering, how does authentication work on graphcool subscriptions? Imagine I have a user which does not have read access to a certain type, but that user subscribes to any mutation on that type, how is authorization done on graphcool (ws)? What happens if that user has access to some fields of that type, but not all?
  • q

    qsys

    02/03/2018, 9:53 AM
    some other question about ETA: * new dashboard? * interface support? * fine grained support for root tokens?
  • k

    kyriakosmichael

    02/03/2018, 11:44 AM
    May i ask something? Q: What is the Benefit of Prisma instead of Apollo Client? Are they equally Compared?
    m
    • 2
    • 2
  • j

    jamiehalvorson

    02/03/2018, 12:18 PM
    Are upserts supported on the graph.cool cloud? https://github.com/graphcool/prisma/issues/25, https://github.com/graphcool/prisma/issues/1280
    n
    • 2
    • 2
  • a

    Aditya

    02/03/2018, 2:11 PM
    Greetings all, Where do I start with GraphQL?
  • a

    Aditya

    02/03/2018, 2:11 PM
    any tutorials I can follow?
  • n

    nilan

    02/03/2018, 2:12 PM
    https://www.howtographql.com/
    👍 3
    🦜 1
  • a

    Aditya

    02/03/2018, 2:12 PM
    Thanks @nilan
    👌 1
  • n

    nilan

    02/03/2018, 4:24 PM
    Please don't cross post messages.
    m
    • 2
    • 1
  • t

    tfiwm

    02/03/2018, 4:41 PM
    using prisma with a local deployment and would like to deploy a test stage to the eu-prisma. how is the easiest way to do this? Any doc for this?
    • 1
    • 2
  • a

    Andrea

    02/03/2018, 8:29 PM
    Hello @nilan!
  • a

    Andrea

    02/03/2018, 8:29 PM
    Thank you for inviting me to your slack channel 🙂
    n
    • 2
    • 9
  • m

    matthiasak

    02/03/2018, 10:03 PM
    Hi, any Graphcool team members online? I need some account support
    n
    • 2
    • 1
  • k

    kenan.warren

    02/04/2018, 1:26 AM
    Does anyone know if it’s possible to export data from a graphcool console project? I wanted to migrate some stuff to Prisma
  • k

    kenan.warren

    02/04/2018, 1:42 AM
    nvm found out I could export off an endpoint from graphcool
  • m

    matthewcheok

    02/04/2018, 4:40 AM
    Hey all, how do I clear the database of all data in prisma?
    c
    • 2
    • 2
  • m

    mark.james

    02/04/2018, 5:16 AM
    Hi @nilan, Just an FYI. I’ve started seeing aws Lambda errors - TooManyRequestsException while trying to deploy a graphcool-framework service. I eventually deployed successfully after a few attempts. A quick google suggests this occurs when there are more than 100 concurrent lambda executions for an account per region. It is suggested you can request an increase to this from amazon.
    n
    • 2
    • 7
  • t

    Tavo

    02/04/2018, 8:20 AM
    does anyone know if I can use Promise.all in a graphcool function?
    m
    • 2
    • 1
1...558559560...637Latest