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

    Mr. Bell

    07/27/2018, 12:45 AM
    it is giving me the following error
  • m

    Mr. Bell

    07/27/2018, 12:45 AM
    Copy code
    hello-world-p docker exec -it 0ed6b3580a1e /bin/bash
    root@0ed6b3580a1e:/usr/src/app# ls
    Dockerfile  datamodel.graphql  docker-compose.yml  prisma.yml
    root@0ed6b3580a1e:/usr/src/app# prisma deploy
     ▸    Could not connect to server at <http://localhost:4466>. Please check if your server is running.
    
    Get in touch if you need help: <https://www.prisma.io/forum/>
    To get more detailed output, run $ export DEBUG="*"
    root@0ed6b3580a1e:/usr/src/app#
    d
    • 2
    • 40
  • m

    Mr. Bell

    07/27/2018, 12:46 AM
    my docker-compose file is generated from running
    prisma init {project-name}
  • m

    manticarodrigo

    07/27/2018, 1:40 AM
    Once I deploy to prisma cloud, what are my http and ws endpoints to consume in a react app?
    f
    • 2
    • 5
  • n

    noahdavis

    07/27/2018, 10:43 AM
    Does anyone here have good tricks or tips for dealing with major performance issues?
  • n

    noahdavis

    07/27/2018, 10:43 AM
    aggregate
    is ridiculous. It takes 3x as long than the actual query:
    Copy code
    > started - 0s
    > ✓ keywords - 11s
    > ✓ aggregate - 34s
  • n

    noahdavis

    07/27/2018, 10:45 AM
    And 11s is wayyy too long, but at least it’s faster to grab the objects and check length instead of using aggregate
  • k

    Kimo

    07/27/2018, 10:59 AM
    Have been working on a GraphQL course book. It contains topics on GraphQL intro and use, Serverside implementations using GraphQL js, Apollo server(express), Graphcool and Prisma?(1.3.5) and client side implementation using React+ Apollo(https://www.packtpub.com/mapt/book/application_development/9781789610543). The Prisma version is a bit backwards but will be working on updates very soon. Feel free to get a copy.
    👍 2
  • r

    Raeesaa

    07/27/2018, 11:52 AM
    Hi. Is it possible to deploy application server on Prisma cloud?
    h
    d
    • 3
    • 3
  • a

    aroman

    07/27/2018, 1:49 PM
    Hello! after I ran
    prisma deploy
    on one of my projects it wont start up after
    yarn start
    . I keep getting this error:
    Copy code
    yarn run v1.7.0
    warning ../package.json: No license field
    $ yarn env-build && ./node_modules/.bin/ts-node src/index.ts
    warning ../package.json: No license field
    package json license:
    "license": "ISC",
    Can anyone point me in the right direction?
    j
    • 2
    • 7
  • m

    manticarodrigo

    07/27/2018, 1:57 PM
    I have an app based on the boilerplate react-fullstack advanced. When I change my apollo http and ws to point to the service endpoints on prisma cloud, I get the following error on the feed page
    The provided query doesn't include any known model…e. Please check for the latest subscriptions API.
    And on signup
    GraphQL error: Cannot query field 'signup' on type 'Mutation'. (line 2, column 3): signup(email: $email, password: $password, name: $name {
  • h

    hez

    07/27/2018, 2:59 PM
    I need to find a way to return all requested relational data on a subscription... using Apollo/Prisma/GraphQLYoga.... I have the following here:
    Copy code
    Subscription: {
        tripStatusUpdated: {
          subscribe: withFilter(
            () => return pubsub.asyncIterator(Events.TRIP_STATUS_UPDATED),
            (payload, variables) => {
              console.log('PAYLOAD: ', payload)
              return payload.tripStatusUpdated.tripID === variables.tripID
            },
          ),
        },
    }
    This only returns the item dispatched with the event, and not the requested data from the subscription. Is there any way to request certain fields on a model from the subscription?
    l
    • 2
    • 7
  • h

    hpartidas

    07/27/2018, 5:06 PM
    Good morning all, I'm having some issues with prisma bindings. When I try to run
    graphql codegen
    I get the following:
    Copy code
    graphql codegen
    ✖ Generating bindings for project prisma...
    { Error: Cannot find module 'typescript'
        at Function.Module._resolveFilename (module.js:547:15)
        at Function.Module._load (module.js:474:25)
        at Module.require (module.js:596:17)
        at require (internal/module.js:11:18)
        at Object.register /project/node_modules/ts-node/src/index.ts:227:26)
        at /project/node_modules/prisma-binding/src/bin.ts:54:24
        at step (/project/node_modules/prisma-binding/dist/bin.js:33:23)
        at Object.next (/project/node_modules/prisma-binding/dist/bin.js:14:53)
        at /project/node_modules/prisma-binding/dist/bin.js:8:71
        at new Promise (<anonymous>) code: 'MODULE_NOT_FOUND' }
    Am I missing some dependency? Yarn / npm don't display any dependency messages. I installed typescript globally thinking that may solve the issue but it does nothing. Ultimately
    /node_modules/prisma-binding/src/
    does not exist on the file system.
    d
    • 2
    • 4
  • h

    hpartidas

    07/27/2018, 5:19 PM
    Another issue i'm encountering is when trying to run the server, I get the following:
    Copy code
    node server/index.js 
    /project/node_modules/graphql-yoga/node_modules/graphql-import/dist/definition.js:113
                    throw new Error("Directive " + directiveName + ": Couldn't find type " + directiveName + " in any of the schemas.");
                    ^
    
    Error: Directive pgTable: Couldn't find type pgTable in any of the schemas.
        at collectDirective (/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/definition.js:113:23)
        at Array.forEach (<anonymous>)
        at collectNewTypeDefinitions (/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/definition.js:47:34)
        at Object.completeDefinitionPool (/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/definition.js:23:41)
        at Object.importSchema (/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/index.js:87:41)
        at mergeTypeDefs (/project/node_modules/graphql-yoga/dist/index.js:402:37)
        at new GraphQLServer (/project/node_modules/graphql-yoga/dist/index.js:92:34)
        at Object.<anonymous> (/project/server/index.js:34:23)
        at Module._compile (module.js:652:30)
        at Object.Module._extensions..js (module.js:663:10)
    This is related to the output generated by
    prisma introspect
    command. I see the
    @pgTable
    attribute can't find it defined anywhere. Am I missing another dependency?
    d
    • 2
    • 5
  • k

    kratam

    07/27/2018, 5:54 PM
    Is it possible to import a graphQL enum from a schema file to a typescript file or they're different kind of beasts?
    m
    • 2
    • 2
  • k

    Kevin S

    07/27/2018, 8:00 PM
    AAH! What happened to the full-screen function editor on the graph.cool console?!
  • k

    Kevin S

    07/27/2018, 8:02 PM
    HELP HELP HELP This is insane? I'm supposed to go to production in 4 days and I can't edit or test anything?!
    😶 2
  • c

    cliff76

    07/27/2018, 9:48 PM
    I’m stuck again. I’m trying to run a relay query which ties games to the currently logged in user. Everything in my query looks good but the queery is only returning the user id!!??
  • c

    cliff76

    07/27/2018, 9:49 PM
    Here’s my Profile.js
    Profile_js.js
    • 1
    • 3
  • m

    Mike

    07/27/2018, 10:18 PM
    @nilan Is there a way to scale out prisma to multiple instances in ECS? We used the standard prisma template and then added a second instance for redundancy and things crashed hard. But we really need a fallback because Prisma crashes all the time and there’s no redundancy with only one instance. It looks like the issue is with
    Obtaining exclusive agent lock...
    The second prisma instance can’t get the lock because there are 2 instances active and it crashes. Are there any plans to make prisma work with horizontal scaling? I understand that there are issues with using the cli-based
    prisma deploy
    model because it will only deploy to one server, but you could adopt a master/slave model where one server handles the management API and the other one just serves requests. That’s pretty much what Kubernetes does. Also, you could allow us to use prisma without the prisma CLI by just building a docker image with all our data models already included and then handling migrations separately through a CLI (likely in a one-off container/dyno) similar to
    heroku run rake db:migrate
    or
    docker exec -t rake db:migrate
    . That’s a probably easier for the prisma team to implement and it’s a little more devops work for your users, but anyone who wants to scale horizontally in the first place probably won’t mind the extra work.
    👍 2
    d
    t
    • 3
    • 11
  • m

    Mike

    07/27/2018, 10:24 PM
    Also, FWIW: I already read the docs top to bottom 100% and couldn’t find a mention of multiple prisma servers running a single service. The previous name for “Prisma Server” was “Prisma Cluster”, which seems to suggest that you could have multiple nodes in the cluster, but sadly that appears to not be possible. Basically I need to know if this is possible and/or when you plan to make it possible.
    d
    • 2
    • 1
  • r

    rwatts3

    07/27/2018, 11:26 PM
    Hello everyone, I am trying to pass a model in it's full context over to a graphql server and it seems in schema.graphql I have to recreate all the mutations and queries, I'd simply just like to expose that model and all of it's full CRUD to graphql without having to replicate
    m
    • 2
    • 14
  • r

    rwatts3

    07/27/2018, 11:26 PM
    is there a simple way or example to do this.
    ✅ 1
  • z

    zak.singh

    07/27/2018, 11:33 PM
    Is it possible to write to your database directly using SQL commands? I'm calling an INSERT INTO from a lambda function, and while it writes, it also breaks Prisma as I presume all the stuff Prisma generates is not generated? In my case I'm inserting into the Users table, which causes Prisma Cloud's data browser to error on pulling "usersConnection"
    m
    • 2
    • 16
  • c

    clayton

    07/28/2018, 2:07 AM
    Has anyone managed to disable the prisma server playground?
    d
    • 2
    • 4
  • n

    Nick

    07/28/2018, 9:50 AM
    Adding a server in https://www.howtographql.com/react-apollo/1-getting-started/ The following steps
    curl <https://codeload.github.com/howtographql/react-apollo/tar.gz/starter> | tar -xz --strip=1 react-apollo-starter/server
    yarn install
    then
    prisma deploy
    gives the following errror "Cluster undefined does not exist!"
    ✅ 1
    • 1
    • 2
  • g

    Gorodov Maksim

    07/28/2018, 1:22 PM
    what does it mean?
    k
    • 2
    • 2
  • u

    ullrich

    07/28/2018, 2:35 PM
    Hi folks, I just got back to my weekend project and wanted to see if everything still works, and sure enough my subscriptions stoped working. So I figured I just create a new test project using
    prisma init ...
    on the demo server and try it out there, but also there subscriptions seem to not fire. My subscription looks like this:
    Copy code
    subscription{
      user{
        mutation
        node{
          id
          name
        }
      }
    }
    The mutation that creates the user succeeds and I can query the user, but the subscription in the playground is not returning any results even though being in the state of
    Listening ...
    Is there a general service issue going on atm?
    • 1
    • 3
  • z

    zak.singh

    07/28/2018, 10:41 PM
    Is anyone familiar with trying to use prisma-bindings in a lambda function?
    d
    • 2
    • 9
  • v

    vacom

    07/29/2018, 1:45 PM
    Hey, Apollo team announced a new feature for apollo Server, @Defer wanted to know if this is going to come to the prisma server.
    h
    d
    • 3
    • 5
1...909192...637Latest