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

    develomark

    07/25/2018, 9:55 AM
    ⚡ And here is an example of Prisma working with Apollo Server 2.0. It is a straight fork of the graphql-server-example with Apollo Server replacing Yoga. https://github.com/develomark/graphql-server-example
    👍 6
    m
    f
    +2
    • 5
    • 8
  • j

    Jonathan Tushman

    07/25/2018, 10:36 AM
    [unresolved] Hi friends, I just worked through the Prisma node.js tutorial on howtographql -- and was really blown away (especially coming from ruby's graphql) I some probably pretty basic architecture questions that I would love some help on. Which I will take into the thread (thanks all in advance who chime in):
    m
    • 2
    • 7
  • n

    noahdavis

    07/25/2018, 11:36 AM
    Is there any reason we can't upgrade prisma server to 1.12?
  • n

    noahdavis

    07/25/2018, 11:36 AM
    Still stuck at 1.10.2
  • j

    Jonathan Tushman

    07/25/2018, 2:52 PM
    how do we do cloud functions with prisma (like were provided in graph cool) to expose a route and be able to process it on the server?
  • j

    Jonathan Tushman

    07/25/2018, 2:53 PM
    I see: https://www.prisma.io/docs/reference/upgrade-guides/graphcool-to-prisma/functions-cheechoo8o
    👍 1
  • j

    Jonathan Tushman

    07/25/2018, 2:54 PM
    but not sure how to map a url route to a function or resolver -- or how to hook it up to the server
  • c

    carstenbaumhoegger

    07/25/2018, 3:13 PM
    hey guys! I’ve created a droplet at DigitalOcean, installed NodeJS and tried to start Prisma. I’ve done this with Prisma 1.9 previously, in the new project we’re using Prisma 1.12. Unfortunately, the start of the
    graphql-yoga
    throws errors I cannot replicate at my local machine. Maybe someone of you has an idea?
    Copy code
    TSError: ⨯ Unable to compile TypeScript:
    src/index.ts(10,34): error TS2345: Argument of type '{ typeDefs: string; resolvers: { Query: { me(parent: any, args: any, ctx: Context, info: any): Pr...' is not assignable to parameter of type 'Props<any, any, any>'.
      Types of property 'middlewares' are incompatible.
        Type 'import("/root/office-drinks/backend/node_modules/graphql-middleware/dist/types").IMiddleware<a...' is not assignable to type 'import("/root/office-drinks/backend/node_modules/graphql-yoga/node_modules/graphql-middleware/...'.
          Type 'import("/root/office-drinks/backend/node_modules/graphql-middleware/dist/types").IMiddleware<a...' is not assignable to type 'import("/root/office-drinks/backend/node_modules/graphql-yoga/node_modules/graphql-middleware/...'.
            Type 'IMiddlewareFunction<any, any, any>' is not assignable to type 'IMiddleware<any, any, any>'.
              Type 'IMiddlewareFunction<any, any, any>' is not assignable to type 'IMiddlewareTypeMap<any, any, any>'.
                Index signature is missing in type 'IMiddlewareFunction<any, any, any>'.
    Thanks in advance!
    a
    • 2
    • 2
  • j

    Jonathan Tushman

    07/25/2018, 3:55 PM
    is it possible to mount the GraphQLServer to an express route, something like:
    Copy code
    var app = express();
    app.use('/graphql', graphqlHTTP({
      schema: schema,
      rootValue: root,
      graphiql: true,
    }));
    app.listen(4000);
    console.log('Running a GraphQL API server at localhost:4000/graphql');
    d
    • 2
    • 5
  • e

    ericsonluciano

    07/25/2018, 4:11 PM
    Hi everyone how the approach in this simple scenario so user are required to create an account and post right in a sample boilerplate right? but how about do this anyone can post but all post are not published and user/admin can only approve and decline post. ops i think i have wrong to ask here since this is a graphql concern
  • b

    brandon

    07/25/2018, 4:42 PM
    I have a general question that might be more of a SQL question. I want to create a row in my Transaction table, but my 3rd party API asks for the ID of the Transaction before they create an entry, but I want to do it in parallel. So my general solution would be to create a Transaction, send it to the third party API, wait for a response or error, delete the row with the ID if there is an error, or correlate it if it's successful. Is there a way I can just create the ID for the Transaction table in Prisma and conditionally discard it if there is an error with built in solutions?
    l
    • 2
    • 21
  • k

    kratam

    07/25/2018, 6:25 PM
    I get this message when I try to use the typescript-advanced boilerplate:
    Copy code
    unning graphql get-schema --project database ✔
    { FetchError: invalid json response body at <https://api.cloud.prisma.sh> reason: Unexpected token < in JSON at position 0
    Is prisma cloud down?
    z
    b
    +2
    • 5
    • 7
  • b

    brandon

    07/25/2018, 6:28 PM
    I'm having an issue. I've upgraded from 1.6.3 to 1.12. I've done a
    Copy code
    prisma reset
    but am still having issues with it. when I do
    Copy code
    Prisma list
    It doesn't show any deployed services. but when doing
    Copy code
    prisma info
    it shows me my endpoint. Going to my endpoint, I also receive the message:
    Copy code
    Uncaught Error: {
      "errors": [
        {
          "message": "Project not found: 'public-fancybelly-926@om-web-graphql'",
          "code": 3016,
          "requestId": "us1:api:cjk1gl6vslun90b02r9ltlfw6"
        }
      ]
    }
    d
    • 2
    • 5
  • m

    Mike

    07/25/2018, 7:03 PM
    Hi everyone! Do any of you have recommendations for a GraphQL based CRM? If you know of a Prisma based one, even better!
    d
    • 2
    • 5
  • l

    lawjolla

    07/25/2018, 7:38 PM
    Has anyone seen an "unknown argument on field" error using GraphQL-Yoga? Here's a 1 minute video where I modify the schema, the introspection shows everything, but when the query is run, error. https://cl.ly/0U0R460c2n1F
    d
    • 2
    • 5
  • z

    Zach

    07/25/2018, 7:48 PM
    I’m having an issue creating a server with the Heroku integration, I get to the point where I’m creating the database and I get the following error on Prisma Cloud. Thanks!
    d
    m
    • 3
    • 6
  • w

    w0wka91

    07/26/2018, 3:42 AM
    Does anybody know how i can deploy a prisma server on dokku?
    i
    • 2
    • 4
  • l

    lancej

    07/26/2018, 8:51 AM
    Is there any particular reason
    GraphQLServerLambda
    does not have middleware property? Makes reuse difficult
    d
    d
    • 3
    • 14
  • i

    Ibesoft

    07/26/2018, 12:26 PM
    I want to deploy my prisma graphql server to an online hosting tool with a MySql db, how can I achieve that ?
    a
    • 2
    • 13
  • j

    Jonathan Tushman

    07/26/2018, 2:22 PM
    Hi friends, what is the current work around to indexes, and compound indexes? https://github.com/prismagraphql/prisma/issues/1300#issuecomment-404056203
  • j

    Jonathan Tushman

    07/26/2018, 2:25 PM
    or is it less of an issue than I think that it will be
  • m

    mattferrin

    07/26/2018, 4:23 PM
    Can we generate our own ID (cuid) while creating a new table entity? Trying to use it in a relationship upon creation.
  • h

    huv1k

    07/26/2018, 7:11 PM
    Btw who is interested to deploy prisma to zeit now https://github.com/develomark/prisma-now
    ✋ 3
    l
    f
    • 3
    • 9
  • t

    tafelito

    07/26/2018, 8:05 PM
    hey guys is there an easier way to import data from a sqllite db (exported as json) to the prisma db (mysql running on a local docker container) other than this? https://www.prisma.io/docs/tutorials/database-workflows/data-export-and-import-caith9teiy
  • t

    tafelito

    07/26/2018, 8:06 PM
    I have to copy the JSON data manually into the mutation
  • b

    brandon

    07/26/2018, 10:47 PM
    So I just migrated my from graphql-yoga to Apollo-server version 2 and I am getting
    Copy code
    Message: Whoops. Looks like an internal server error. Search your server logs for request ID: us1:api:cjk35bbjsjyaw0b0272iq62kv
    whenever I try to do any queries. There wasn't much changes so I assume it's some dependency issue?
    a
    l
    +2
    • 5
    • 13
  • c

    cliff76

    07/26/2018, 11:49 PM
    👋 All! I'm trying to finish a Lynda.com course and I'm having trouble authenticating with the Auth0 lock framework.
  • c

    cliff76

    07/26/2018, 11:50 PM
    I've done a bunch of Googling for answers but I'm not getting anywhere. How do I authenticate and run a CreateUser mutation using auth0 lock?
  • c

    cliff76

    07/26/2018, 11:51 PM
    I'm fighting this error:
    The provided idToken is invalid. Please see <https://auth0.com/docs/tokens/id_token> 5 for how to obtain a valid idToken
    b
    f
    d
    • 4
    • 13
  • m

    Mr. Bell

    07/27/2018, 12:45 AM
    having some weird issues with prisma and docker
1...899091...637Latest