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

    mullinb

    06/18/2018, 3:35 PM
    to clarify, these strings are neither in .gql files nor wrapped in graphql-tags; they are simply javascript strings!
  • w

    woss

    06/18/2018, 3:57 PM
    is
    PRISMA_MANAGEMENT_API_SECRET
    still needed?
    n
    • 2
    • 16
  • d

    Drew Delianides

    06/18/2018, 5:14 PM
    Hey! Has anyone "related" a non prisma type within their prisma datamodel? ie:
    n
    • 2
    • 1
  • d

    Drew Delianides

    06/18/2018, 5:15 PM
    Copy code
    datamodel.graphql
    
    type User{
    id: ID! @unique
    foo: [Bar]
    }
    
    some/rest/api.graphql
    
    type Bar{
    data: String!
    }
  • v

    veksen

    06/18/2018, 6:38 PM
    okay so I upgrade to Prisma 1.9 last week and it went well on my iMac, however my MBP + my coworker's computer are now giving a token error and neither of us can figure out what we're missing 😐 We destroyed Docker containers (
    docker rm X --force
    ).. then
    docker-compose up -d
    , then ran
    yarn prisma deploy
    , the
    .env
    files are identical.
    l
    • 2
    • 5
  • v

    veksen

    06/18/2018, 6:38 PM
  • r

    ronanyeah

    06/18/2018, 6:41 PM
    is anyone managing to successfully use
    netlify-lambda serve
    with Prisma? i can get a yoga server going but if i add
    require("prisma-binding");
    to the file i will get a
    Function invocation failed: Error: Cannot find module "."
    • 1
    • 1
  • d

    Dukuo

    06/18/2018, 6:54 PM
    Any ideas on this topic? 🙌
    a
    l
    • 3
    • 4
  • n

    nate

    06/18/2018, 8:04 PM
    so i'm just getting familiar with directives. is there a way to pass a dynamic value to the directive?
    l
    • 2
    • 3
  • n

    nate

    06/18/2018, 8:04 PM
    for example, i have this directive:
    directive @isCommunityMember(communityId: ID) on QUERY | FIELD | MUTATION
  • n

    nate

    06/18/2018, 8:05 PM
    and i was hoping to have a query like this:
    eventFeed(communityId: ID!): [Event!]! @isAuthenticated @isCommunityMember(communityId: $communityId)
  • n

    nate

    06/18/2018, 8:05 PM
    where the community ID would be passed to the directive
  • n

    nate

    06/18/2018, 8:05 PM
    or maybe there is a different way to handle it
  • n

    nate

    06/18/2018, 8:06 PM
    because i essentially want to make sure a user is a member of the community he is trying to get data about
  • u

    user

    06/18/2018, 8:08 PM
    A file was commented on
  • v

    veksen

    06/18/2018, 8:11 PM
    Where does this token go?
  • w

    wesbos

    06/18/2018, 8:16 PM
    still getting the error
    No cluster set. Please set the "cluster" property in your prisma.yml
    when trying to use playground - I thought clusters were deprecated in favour of the endpoint
    n
    • 2
    • 35
  • v

    veksen

    06/18/2018, 8:17 PM
    yeah
    yarn prisma token
    doesn't change anything - both in playground or from my app
    n
    • 2
    • 14
  • s

    Sam Hulick

    06/18/2018, 8:54 PM
    does anyone have any tutorials on how to deploy a Prisma server/container to Zeit? the official docs only tell you how to set up a GraphQL server, using a demo Prisma server.
    👀 1
    n
    • 2
    • 1
  • c

    calvintyvm

    06/18/2018, 9:07 PM
    is anyone here
    n
    • 2
    • 1
  • c

    calvintyvm

    06/18/2018, 9:08 PM
    im trying to do this https://github.com/graphcool-examples/react-native-graphql/tree/master/outdated/subscriptions-with-expo-and-apollo-chat
  • c

    calvintyvm

    06/18/2018, 9:08 PM
    and was just wondering if its still possible to use this, despite it being outdated
  • c

    calvintyvm

    06/18/2018, 9:08 PM
    it's not working for me so im just wondering if anyone ever used it
  • s

    Sam Hulick

    06/18/2018, 10:38 PM
    hi, we're having issues running Prisma locally via docker-compose, and using our own database on Amazon RDS. when I run
    prisma deploy
    , it seems to create the database tables just fine, but eventually times out. doing what, we're not sure. there are no other servers involved in this process.. everything is local in Docker, or on AWS RDS. we tried the prisma1.8 and prisma1.9 Docker images, both fail EDIT: related issue: https://github.com/prismagraphql/prisma/issues/2400
  • r

    ryannealmes

    06/18/2018, 10:44 PM
    Does anyone know how I can log all requests coming through graphql server?
  • r

    ryannealmes

    06/18/2018, 10:45 PM
    I see that graphql-yoga has a
    logFunction
    option, but I can’t quite figure out how it works
  • r

    ryannealmes

    06/18/2018, 10:45 PM
    as there isn’t much in the docs
  • v

    veksen

    06/18/2018, 10:45 PM
    apollo engine?
  • r

    ryannealmes

    06/18/2018, 10:45 PM
    Using https://github.com/prismagraphql/graphql-yoga
  • r

    ryannealmes

    06/18/2018, 10:47 PM
    cool figured it out
1...606162...637Latest