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

    geirman

    04/04/2018, 7:42 PM
    sorry!
  • m

    Marian Paul

    04/04/2018, 10:06 PM
    Hi guys! I might have a very dumb question... Considering I have an enum in my schema, how do I (with yoga) write my where condition with the value? String is not working as like in the playground
    Copy code
    enum ADDRESS_TYPE {
        WORK
        HOME
        OTHER
    }
    Copy code
    const where = {
            type: HOME, // Not working
          }
      
          return ctx.db.query.addresses({ where }, info)
    l
    • 2
    • 15
  • m

    Mike

    04/05/2018, 12:09 AM
    Hey, playing with Prisma, I was wondering if there was a way to use ids given via inputs to mutations for creating entities
    n
    • 2
    • 9
  • m

    Mike

    04/05/2018, 12:10 AM
    we have ids being created by consumers of the api, and we definitely donโ€™t want to deal with the complexity of fake ids
  • m

    Mike

    04/05/2018, 12:13 AM
    we can ensure that they are globally unique, etc
  • p

    Philippe

    04/05/2018, 1:07 AM
    Hi guys, I Love your app style! Did u have the styles (frontend stuff, like css and others) open source?
  • p

    Philippe

    04/05/2018, 1:08 AM
    Is this one? https://github.com/graphcool/styles
  • m

    Muenze

    04/05/2018, 1:47 PM
    Hi guys I am looking for email/password authentication for Ionic. Any help please
  • y

    yuri

    04/05/2018, 2:42 PM
    Hey! Is there any other solution how to generate new local cluster without using
    prisma init my-app
    command?
  • w

    woss

    04/05/2018, 2:43 PM
    Iโ€™m not sure is this asked (I couldnโ€™t find it in this channel) but how can return error in response without breaking graphql-yoga server?
  • w

    woss

    04/05/2018, 2:45 PM
    std_code.js
  • w

    woss

    04/05/2018, 2:46 PM
    for some reason ^ crashes server, any help would be appreciated ๐Ÿ™‚
    l
    • 2
    • 45
  • j

    Joshua Johnsgaard

    04/05/2018, 4:19 PM
    Hiya! everyone
    ๐Ÿ‘‹ 2
  • j

    Joshua Johnsgaard

    04/05/2018, 4:19 PM
    is there a channel where I can request help with the graphcool syntax
  • j

    Joshua Johnsgaard

    04/05/2018, 4:20 PM
    I just want to figure out why my field definitions are not working as
    # Definition
  • j

    Joshua Johnsgaard

    04/05/2018, 4:20 PM
    I have tried
    """ Definition """
  • j

    Joshua Johnsgaard

    04/05/2018, 4:20 PM
    I get the exception...
  • j

    Joshua Johnsgaard

    04/05/2018, 4:21 PM
    Copy code
    expected ImplementsInterfaces, Directives, FieldDefinition or Comments
  • j

    Joshua Johnsgaard

    04/05/2018, 4:21 PM
    Can't find it in the docs anywhere ๐Ÿ˜›
  • j

    Joshua Johnsgaard

    04/05/2018, 4:23 PM
    here is an example of my schema
  • j

    Joshua Johnsgaard

    04/05/2018, 4:23 PM
    Copy code
    type VignetteTags @model {
      # ID
      id: ID! @isUnique
      # Weight
      weight: Int!
      # Tag relationship
      tag: Tag! @relation(name: "VignetteTagPivotTags")
      # Vignette Relationship
      vignette: Vignette! @relation(name: "VignetteTags")
    }
  • m

    Michael Jones

    04/05/2018, 4:46 PM
    Is it possible to query our own resolvers? We can do
    ctx.db.query.PrismaResolver()
    , but can we something like
    ctx.query.OurResolver()
    ? I can't seem to find this in the docs. Currently I am just importing the resolver, is there another way?
    d
    l
    • 3
    • 11
  • l

    lawjolla

    04/05/2018, 5:10 PM
    Is anyone working on authenticated subscriptions? I need to chew your ear off for a moment. ๐Ÿ™‚
  • l

    lawjolla

    04/05/2018, 5:35 PM
    Looks like us1.prisma.sh fell over. Someone pick it back up ๐Ÿ™‚
    ๐Ÿ˜‚ 1
    n
    • 2
    • 2
  • j

    Joshua Johnsgaard

    04/05/2018, 5:42 PM
    Does anyone know if fieldDefinitions is a thing before I start going for a more hardcoded solution? ๐Ÿ˜›
    graphcool 2
    n
    • 2
    • 1
  • y

    Yannick

    04/05/2018, 6:00 PM
    Is Graphcool and ApolloGraph owned by the same company? What is the difference?
    d
    n
    • 3
    • 8
  • l

    Luca Gabi

    04/05/2018, 6:14 PM
    Hi, I have a question can I host prisma service on my server or it must always be deployed to another existing cluster?
    n
    • 2
    • 8
  • p

    pasa

    04/05/2018, 6:15 PM
    Hello again, I got another question. This time it's about subscriptions. Currently I'm using polling to keep the contents of my site up-to-date, when external changes occur. This will trigger a http request with the size of a few KB every few seconds, which then fetches a single object (that's how my data is structured) with the name "Site". This object holds multiple child nodes, which also may or may not hold child nodes (I mean relations/connections by writing children). Like this, the fetching of new data is not very efficient, as the polling happens no matter what, even if there are no changes in the db. The best solution for me at this moment, would be a subscription, that would keep the whole Site Object updated (with all children). It would need to trigger on CUD operations for the Site and every other node, that is related. Is this possible at all? I'm aware of the fact that this usually works a little bit differently and data is normally fetched via a query at multiple points in the code (sometimes for each component separately), but my nodes do have multiple connections (a<-->b a<-->c b<-->c) that will make the different elements really dependant on each other and especially on all CUD operations. If I would do it like this, I would have to keep multiple websockets open at once and I don't know if this is all that good... Thanks to everyone in advance! ๐Ÿ™‚
    n
    • 2
    • 3
  • p

    Philippe

    04/05/2018, 6:44 PM
    Hi guys
  • p

    Philippe

    04/05/2018, 6:44 PM
    I got a error when installing react-fullstack-basic boilerplate
    n
    • 2
    • 1
1...629630631...637Latest